Package org.qubership.profiler.utils
Class CommonUtils
java.lang.Object
org.qubership.profiler.utils.CommonUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,K> int upperBound(T[] a, K key, int imin, int imax, UnaryFunction<T, K> keySelector, Comparator<K> comparator) Taken from http://en.wikipedia.org/wiki/Binary_search_algorithm #Deferred_detection_of_equality Adapted to find upper bound.
-
Constructor Details
-
CommonUtils
public CommonUtils()
-
-
Method Details
-
upperBound
public static <T,K> int upperBound(T[] a, K key, int imin, int imax, UnaryFunction<T, K> keySelector, Comparator<K> comparator) Taken from http://en.wikipedia.org/wiki/Binary_search_algorithm #Deferred_detection_of_equality Adapted to find upper bound.
-