Class AssociationRoleTypeComparator
java.lang.Object
net.ontopia.topicmaps.nav.utils.comparators.AssociationRoleTypeComparator
- All Implemented Interfaces:
Comparator<AssociationRoleIF>
INTERNAL: A comparator for ordering AssociationRoleIFs alphabetically
by role type and role player.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAssociationRoleTypeComparator(Collection<TopicIF> context, TopicIF sortTopic) Constructor used to make a comparator which will compare Association Roles using the context provided. -
Method Summary
Modifier and TypeMethodDescriptionintcompare(AssociationRoleIF ar1, AssociationRoleIF ar2) Compares two AssociationRoleIFs.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
tc
-
-
Constructor Details
-
AssociationRoleTypeComparator
public AssociationRoleTypeComparator() -
AssociationRoleTypeComparator
Constructor used to make a comparator which will compare Association Roles using the context provided.- Parameters:
context- The context to select topics in.sortTopic- The topic representing sort names.
-
-
Method Details
-
compare
Compares two AssociationRoleIFs.- Specified by:
comparein interfaceComparator<AssociationRoleIF>
-