public class RelationshipComparator
extends java.lang.Object
implements java.util.Comparator
Constructor and Description |
---|
RelationshipComparator(int type)
Constructs the RelationshipComparator
|
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compare 2 relationships;
|
boolean |
equals(java.lang.Object o)
Compare 2 objects for equality
|
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