public class ArrayReverse<T> extends Object implements ArrayAlgorithm, Lang.Func3<T[],Integer,Integer,T[]>
Return an new array contains elements specified by from and to in an array in reverse order
ArrayAlgorithm.Util| Constructor and Description |
|---|
ArrayReverse() |
| Modifier and Type | Method and Description |
|---|---|
T[] |
apply(T[] ts,
Integer from,
Integer to)
Run the function with parameters specified.
|
T[] |
reverse(T[] ts,
int from,
int to) |
public T[] apply(T[] ts, Integer from, Integer to) throws NotAppliedException, Lang.Break
Lang.Func3Run the function with parameters specified.
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.Func3<T[],Integer,Integer,T[]>ts - argument 1from - argument 2to - argument 3NotAppliedException - if the function doesn’t apply to the parameter(s)Lang.Break - to short cut collecting operations (fold/reduce) on an containerCopyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.