Package net.ontopia.topicmaps.utils
Class ObjectIdComparator
java.lang.Object
net.ontopia.topicmaps.utils.ObjectIdComparator
- All Implemented Interfaces:
Comparator<TMObjectIF>
INTERNAL: Comparator that compares object ids of TMObjectIF objects.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(TMObjectIF obj1, TMObjectIF obj2) INTERNAL: compares the object ids of the given objectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ObjectIdComparator
public ObjectIdComparator()
-
-
Method Details
-
compare
INTERNAL: compares the object ids of the given objects- Specified by:
comparein interfaceComparator<TMObjectIF>- Parameters:
obj1- TMObjectIFobj2- TMObjectIF- Returns:
- int; 0 if the two objects have the same object id; otherwise positive/negative according to compareTo on the (string) values of the object ids
-