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() |
public T[] apply(T[] ts, Integer from, Integer to) throws NotAppliedException, Lang.Break
Lang.Func3
Run 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 container
Copyright © 2014–2018 OSGL (Open Source General Library). All rights reserved.