public class ArrayReverseInplace<T> extends Object implements ArrayAlgorithm, Lang.Func3<T[],Integer,Integer,T[]>
Created with IntelliJ IDEA. User: luog Date: 5/11/13 Time: 11:55 AM To change this template use File | Settings | File Templates.
ArrayAlgorithm.Util
Constructor and Description |
---|
ArrayReverseInplace() |
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.