public interface ArraySearch<T> extends ArrayAlgorithm, Lang.Func5<T[],Integer,Integer,T,Comparator<T>,Integer>
Created with IntelliJ IDEA. User: luog Date: 20/11/13 Time: 10:10 PM To change this template use File | Settings | File Templates.
ArrayAlgorithm.Util
Integer apply(T[] ts, Integer from, Integer to, T key, Comparator<T> comp)
Search array region specified by from
and to
using the predicate specified
apply
in interface Lang.Func5<T[],Integer,Integer,T,Comparator<T>,Integer>
ts
- the sorted array to be searchedfrom
- the from indexto
- the to indexkey
- the key to search the arraycomp
- the comparator functionCopyright © 2014–2018 OSGL (Open Source General Library). All rights reserved.