de.topicmapslab.majortom.io
Class CXTMTopicMapWriter.ScopeComparator

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

private final class CXTMTopicMapWriter.ScopeComparator
extends CXTMTopicMapWriter.AbstractSetComparator<org.tmapi.core.Topic>

Compares the scope of two scoped Topic Maps constructs.


Constructor Summary
private CXTMTopicMapWriter.ScopeComparator()
           
 
Method Summary
(package private)  int compareContent(java.util.Set<org.tmapi.core.Topic> o1, java.util.Set<org.tmapi.core.Topic> 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
 

Constructor Detail

CXTMTopicMapWriter.ScopeComparator

private CXTMTopicMapWriter.ScopeComparator()
Method Detail

compareContent

int compareContent(java.util.Set<org.tmapi.core.Topic> o1,
                   java.util.Set<org.tmapi.core.Topic> 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.Topic>
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.