de.topicmapslab.majortom.io
Class CXTMTopicMapWriter.RoleSetComparator

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

private final class CXTMTopicMapWriter.RoleSetComparator
extends CXTMTopicMapWriter.AbstractSetComparator<org.tmapi.core.Role>

Compares role sets. The parent of the roles is ignored!


Field Summary
private  CXTMTopicMapWriter.RoleIgnoreParentComparator _roleCmp
           
 
Constructor Summary
CXTMTopicMapWriter.RoleSetComparator()
           
 
Method Summary
(package private)  int compareContent(java.util.Set<org.tmapi.core.Role> o1, java.util.Set<org.tmapi.core.Role> o2, int size)
          Called iff the size of the sets is equal.
 
Methods inherited from class de.topicmapslab.majortom.io.CXTMTopicMapWriter.AbstractSetComparator
compare
 
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
 

Field Detail

_roleCmp

private CXTMTopicMapWriter.RoleIgnoreParentComparator _roleCmp
Constructor Detail

CXTMTopicMapWriter.RoleSetComparator

CXTMTopicMapWriter.RoleSetComparator()
Method Detail

compareContent

int compareContent(java.util.Set<org.tmapi.core.Role> o1,
                   java.util.Set<org.tmapi.core.Role> o2,
                   int size)
Description copied from class: CXTMTopicMapWriter.AbstractSetComparator
Called iff the size of the sets is equal. This method is used to compare the content of the sets.

Specified by:
compareContent in class CXTMTopicMapWriter.AbstractSetComparator<org.tmapi.core.Role>
Parameters:
o1 - The first set.
o2 - The second set.
size - The size of the set(s).
Returns:
A negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.