public class AssociationRoleComparator extends Object implements Comparator<AssociationRoleIF>
Modifier and Type | Field and Description |
---|---|
protected Comparator<TopicIF> |
tc |
Constructor and Description |
---|
AssociationRoleComparator() |
AssociationRoleComparator(Collection<TopicIF> context,
TopicIF sortTopic)
Constructor used to make a comparator which will compare
Association Roles using the context provided.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(AssociationRoleIF ar1,
AssociationRoleIF ar2)
Compares two AssociationRoleIFs.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected Comparator<TopicIF> tc
public AssociationRoleComparator()
public AssociationRoleComparator(Collection<TopicIF> context, TopicIF sortTopic)
context
- The context to select topics in.sortTopic
- The topic representing sort names.public int compare(AssociationRoleIF ar1, AssociationRoleIF ar2)
compare
in interface Comparator<AssociationRoleIF>