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

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

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

INTERNAL: A Comparator for ordering locators alphabetically.


Field Summary
protected  java.util.Collection scopes
           
protected  java.util.Comparator tc
           
 
Constructor Summary
LocatorComparator()
          Empty constructor, used on application startup to initialise a "fast" comparator which will compare Locators using no context.
LocatorComparator(java.util.Collection context)
          Constructor used to make a comparator which will compare Locators using the context provided.
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares two LocatorIFs
 
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

tc

protected java.util.Comparator tc

scopes

protected java.util.Collection scopes
Constructor Detail

LocatorComparator

public LocatorComparator()
Empty constructor, used on application startup to initialise a "fast" comparator which will compare Locators using no context.


LocatorComparator

public LocatorComparator(java.util.Collection context)
Constructor used to make a comparator which will compare Locators using the context provided. This implementation doesn't use the context yet.

Method Detail

compare

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

Specified by:
compare in interface java.util.Comparator


Copyright © 2000-2012 Ontopia.