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

java.lang.Object
  extended by net.ontopia.topicmaps.nav.utils.comparators.TopicComparator
      extended by net.ontopia.topicmaps.nav.utils.comparators.OccTypeComparator
All Implemented Interfaces:
Comparator<TopicIF>

public class OccTypeComparator
extends TopicComparator

INTERNAL: A Comparator for ordering topics alphabetically. Note that it does not look up the 'sort' topic for you, but that this must be provided explicitly to the constructors.


Field Summary
 
Fields inherited from class net.ontopia.topicmaps.nav.utils.comparators.TopicComparator
nameGrabber, nameStringifier
 
Constructor Summary
OccTypeComparator()
           
 
Method Summary
 int compare(TopicIF o1, TopicIF o2)
          implementing method which is required for Comparator interface.
 
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

OccTypeComparator

public OccTypeComparator()
Method Detail

compare

public int compare(TopicIF o1,
                   TopicIF o2)
Description copied from class: TopicComparator
implementing method which is required for Comparator interface.

Specified by:
compare in interface Comparator<TopicIF>
Overrides:
compare in class TopicComparator


Copyright © 2000-2012 Ontopia.