net.ontopia.topicmaps.utils
Class BaseNameComparator

java.lang.Object
  extended by net.ontopia.topicmaps.utils.ScopedIFComparator<TopicNameIF>
      extended by net.ontopia.topicmaps.utils.BaseNameComparator
All Implemented Interfaces:
Comparator<TopicNameIF>

Deprecated. Use TopicNameComparator instead.

public class BaseNameComparator
extends ScopedIFComparator<TopicNameIF>

DEPRECATED: Comparator that first sorts by type then by scope, where untyped base names are ordered before typed ones.

Since:
3.0

Field Summary
 
Fields inherited from class net.ontopia.topicmaps.utils.ScopedIFComparator
scope, subcomparator
 
Method Summary
 int compare(TopicNameIF o1, TopicNameIF o2)
          Deprecated. INTERNAL: Compares the two ScopedIF objects for their applicability in the scope specified in the constructor.
 
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
 

Method Detail

compare

public int compare(TopicNameIF o1,
                   TopicNameIF o2)
Deprecated. 
Description copied from class: ScopedIFComparator
INTERNAL: Compares the two ScopedIF objects for their applicability in the scope specified in the constructor.

Specified by:
compare in interface Comparator<TopicNameIF>
Overrides:
compare in class ScopedIFComparator<TopicNameIF>
Parameters:
o1 - An object implementing ScopedIF.
o2 - An object implementing ScopedIF.
Returns:
See Comparator.compare(Object,Object)


Copyright © 2000-2012 Ontopia.