All Packages Class Hierarchy This Package Previous Next Index
Interface org.dorm4.util.IComparer
- public interface IComparer
This interface defines the compare() method used to compare two objects.
To sort objects of a given type, you must provide an appropriate Comparer
object with a compare() method that orders those objects as desired
-
compare(Object, Object)
- Compare objects and return a value that indicates their relative order:
if (a > b) return > 0;
if (a == b) return 0
if (a < b) return < 0
compare
public abstract int compare(Object a,
Object b)
- Compare objects and return a value that indicates their relative order:
if (a > b) return > 0;
if (a == b) return 0
if (a < b) return < 0
All Packages Class Hierarchy This Package Previous Next Index