de.topicmapslab.majortom.io
Class CXTMTopicMapWriter.RoleComparator

java.lang.Object
  extended by de.topicmapslab.majortom.io.CXTMTopicMapWriter.AbstractComparator<org.tmapi.core.Role>
      extended by de.topicmapslab.majortom.io.CXTMTopicMapWriter.RoleIgnoreParentComparator
          extended by de.topicmapslab.majortom.io.CXTMTopicMapWriter.RoleComparator
All Implemented Interfaces:
java.util.Comparator<org.tmapi.core.Role>
Enclosing class:
CXTMTopicMapWriter

private final class CXTMTopicMapWriter.RoleComparator
extends CXTMTopicMapWriter.RoleIgnoreParentComparator

Canonical sort order: 1. [player] 2. [type] 3. [parent]


Constructor Summary
private CXTMTopicMapWriter.RoleComparator()
           
 
Method Summary
 int compare(org.tmapi.core.Role o1, org.tmapi.core.Role o2)
           
 
Methods inherited from class de.topicmapslab.majortom.io.CXTMTopicMapWriter.AbstractComparator
compareScope, compareString, compareType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

CXTMTopicMapWriter.RoleComparator

private CXTMTopicMapWriter.RoleComparator()
Method Detail

compare

public int compare(org.tmapi.core.Role o1,
                   org.tmapi.core.Role o2)
Specified by:
compare in interface java.util.Comparator<org.tmapi.core.Role>
Overrides:
compare in class CXTMTopicMapWriter.RoleIgnoreParentComparator