net.ontopia.topicmaps.nav.utils.comparators
Class AssociationRoleComparator
java.lang.Object
net.ontopia.topicmaps.nav.utils.comparators.AssociationRoleComparator
- All Implemented Interfaces:
- Comparator
public class AssociationRoleComparator
- extends Object
- implements Comparator
INTERNAL: A comparator for ordering AssociationRoleIFs
alphabetically by role player and role type.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tc
protected Comparator tc
AssociationRoleComparator
public AssociationRoleComparator()
AssociationRoleComparator
public AssociationRoleComparator(Collection context,
TopicIF sortTopic)
- 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.
compare
public int compare(Object o1,
Object o2)
- Compares two AssociationRoleIFs.
- Specified by:
compare
in interface Comparator
Copyright © 2000-2012 Ontopia.