public class RelationshipComparator
extends java.lang.Object
implements java.util.Comparator
Constructor and Description |
---|
RelationshipComparator(int type)
Constructs the RelationshipComparator
|
public RelationshipComparator(int type)
type
- The type to sort bypublic int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
o1
- First object to compareo2
- Second object to comparepublic boolean equals(java.lang.Object o)
equals
in interface java.util.Comparator
equals
in class java.lang.Object
o
- Object to compare to this