public static class N.RangeStep<T extends Number> extends Osgl.F2<T,Integer,T> implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected int |
times |
| Modifier and Type | Method and Description |
|---|---|
T |
apply(T t,
Integer steps)
Apply the two params to the function
|
boolean |
equals(Object obj) |
protected int |
step(int i) |
N.RangeStep<T> |
times(int n) |
andThen, andThen, applyOrElse, curry, curry, lift, orElsebreakOutprotected final int step(int i)
public T apply(T t, Integer steps) throws NotAppliedException, Osgl.Break
Osgl.Func2In case implementing a partial function, it can throw out an
NotAppliedException if the function is not defined for
the given parameter(s)
apply in interface Osgl.Func2<T extends Number,Integer,T extends Number>t - the first argument of type P1steps - the second argument of type P2NotAppliedException - if the function doesn't apply to the parameter(s)Osgl.Break - to short cut collecting operations (fold/reduce) on an containerpublic N.RangeStep<T> times(int n)
Copyright © 2017. All Rights Reserved.