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.Comparatoro1 - First object to compareo2 - Second object to comparepublic boolean equals(java.lang.Object o)
equals in interface java.util.Comparatorequals in class java.lang.Objecto - Object to compare to this