net.ontopia.topicmaps.nav.utils.comparators
Class TopicMapReferenceComparator

java.lang.Object
  extended by net.ontopia.topicmaps.nav.utils.comparators.TopicMapReferenceComparator
All Implemented Interfaces:
java.util.Comparator

public class TopicMapReferenceComparator
extends java.lang.Object
implements java.util.Comparator

INTERNAL: A Comparator for ordering TopicMapReferences lexically. It compares the titles of references case-insensitively.


Field Summary
protected  java.util.Collection scopes
           
 
Constructor Summary
TopicMapReferenceComparator()
          INTERNAL: Creates a reference comparator.
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          INTERNAL: Compares two TopicMapReferenceIFs.
 
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

scopes

protected java.util.Collection scopes
Constructor Detail

TopicMapReferenceComparator

public TopicMapReferenceComparator()
INTERNAL: Creates a reference comparator.

Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
INTERNAL: Compares two TopicMapReferenceIFs.

Specified by:
compare in interface java.util.Comparator


Copyright © 2000-2012 Ontopia.