public interface ArraySearch<T> extends ArrayAlgorithm, Osgl.Func5<T[],Integer,Integer,T,Comparator<T>,Integer>
ArrayAlgorithm.Util| Modifier and Type | Method and Description |
|---|---|
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 |
Integer apply(T[] ts, Integer from, Integer to, T key, Comparator<T> comp)
from and to using
the predicate specifiedapply in interface Osgl.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 © 2017. All Rights Reserved.