EDU.bmrb.rtfgen
Interface VectorSorter.Comparer
- All Known Implementing Classes:
- triple
- Enclosing class:
- VectorSorter
- public static interface VectorSorter.Comparer
This interface defines the compare() method used to compare two objects.
To sort objects of a given type, you must provide a Comparer
object with a compare() method that orders those objects as desired
Method Summary |
int |
compare(java.lang.Object a,
java.lang.Object b)
Compare objects, 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 int compare(java.lang.Object a,
java.lang.Object b)
- Compare objects, return a value that indicates their relative order:
if (a > b) return > 0;
if (a == b) return 0;
if (a < b) return < 0.