public class ArrayReverseInplace<T> extends Object implements ArrayAlgorithm, Osgl.Func3<T[],Integer,Integer,T[]>
ArrayAlgorithm.Util| Constructor and Description |
|---|
ArrayReverseInplace() |
| 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, Osgl.Break
Osgl.Func3In 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.Func3<T[],Integer,Integer,T[]>ts - argument 1from - argument 2to - argument 3NotAppliedException - if the function doesn't apply to the parameter(s)Osgl.Break - to short cut collecting operations (fold/reduce) on an containerCopyright © 2017. All Rights Reserved.