|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.ac.ebi.intact.util.InteractorComparator
This class provides a specific Comparator for 'hidden' Interactors, based on short label. It should be used for Components which contain Interactor (eg Protein) instances.
| Constructor Summary | |
InteractorComparator()
|
|
| Method Summary | |
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
This method compares two Components and orders them according to the short label alphabetic ordering of their Interactors. |
| 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 InteractorComparator()
| 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 Components.
java.lang.NullPointerException - if either or both arguments have no Protein shortLabel set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||