|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.ac.ebi.intact.util.ShortLabelComparator
This class provides a specific Comparator for use with AnnotatedObjects. The comparison is done on short labels, and is a typical String comparison. Common use of this class is for sorting AnnotatedObjects.
| Constructor Summary | |
ShortLabelComparator()
|
|
| Method Summary | |
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
This method compares the two object parameters based on their short label values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
| Constructor Detail |
public ShortLabelComparator()
| Method Detail |
public int compare(java.lang.Object obj1,
java.lang.Object obj2)
compare in interface java.util.Comparatorobj1 - obj2 -
java.lang.ClassCastException - thrown if the arguments are not AnnotatedObjects.
java.lang.NullPointerException - if either or both arguments have no shortLabel set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||