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.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