public static class N.RangeStep<T extends Number> extends Lang.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, Lang.Break
Lang.Func2Apply the two params to the function
In 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 Lang.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)Lang.Break - to short cut collecting operations (fold/reduce) on an containerpublic N.RangeStep<T> times(int n)
Copyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.