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

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

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

INTERNAL: A Comparator for ordering TopicNameIFs alphabetically (case-independent).


Constructor Summary
TopicNameComparator()
          Empty constructor, which will compare TopicNameIFs using no context.
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares two TopicNameIFs.
 
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

TopicNameComparator

public TopicNameComparator()
Empty constructor, which will compare TopicNameIFs using no context.

Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares two TopicNameIFs.

Specified by:
compare in interface java.util.Comparator


Copyright © 2000-2012 Ontopia.