public static class N.ShortRangeStep extends N.RangeStep<Short>
times| Constructor and Description |
|---|
ShortRangeStep() |
ShortRangeStep(int times) |
| Modifier and Type | Method and Description |
|---|---|
Short |
apply(Short from,
Integer steps)
Apply the two params to the function
|
boolean |
equals(Object obj) |
N.ShortRangeStep |
times(int n) |
stepandThen, andThen, applyOrElse, curry, curry, lift, orElsebreakOutpublic ShortRangeStep()
public ShortRangeStep(int times)
public Short apply(Short from, 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<Short,Integer,Short>apply in class N.RangeStep<Short>from - 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 boolean equals(Object obj)
equals in class N.RangeStep<Short>public N.ShortRangeStep times(int n)
times in class N.RangeStep<Short>Copyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.