public class AssociationComparator extends Object implements Comparator<AssociationIF>
Modifier and Type | Field and Description |
---|---|
protected Collection<TopicIF> |
scopes |
protected Comparator<TopicIF> |
tc |
Constructor and Description |
---|
AssociationComparator()
Empty constructor, used on application startup to initialise a
"fast" comparator which will compare Associations using no
context.
|
AssociationComparator(Collection<TopicIF> context)
Constructor used to make a comparator which will compare
Associations using the context provided.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(AssociationIF a1,
AssociationIF a2)
Compares two AssociationIFs.
|
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
protected Collection<TopicIF> scopes
public AssociationComparator()
public AssociationComparator(Collection<TopicIF> context)
public int compare(AssociationIF a1, AssociationIF a2)
compare
in interface Comparator<AssociationIF>