Package edu.rit.util
Class Searching.Object<T>
java.lang.Object
edu.rit.util.Searching.Object<T>
- Type Parameters:
T- Array element data type.
- Enclosing class:
Searching
Class Searching.Object is the base class for a helper object used to
search an array of type
T[].- Version:
- 22-Nov-2011
- Author:
- Alan Kaminsky
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Object
public Object()
-
-
Method Details
-
compare
Compare two elements according to the desired ordering criterion.- Parameters:
a- First element being compared.b- Second element being compared.- Returns:
- A number less than, equal to, or greater than 0 if
acomes before, is the same as, or comes afterb, respectively.
-