de.topicmapslab.majortom.io
Class CXTMTopicMapWriter.LocatorSetComparator

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

private final class CXTMTopicMapWriter.LocatorSetComparator
extends CXTMTopicMapWriter.AbstractSetComparator<org.tmapi.core.Locator>

Comparator for sets of Locators.


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

private CXTMTopicMapWriter.LocatorSetComparator()
Method Detail

compareContent

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