public class TypedIFComparator extends Object implements Comparator<TypedIF>
Modifier and Type | Field and Description |
---|---|
protected Comparator<TopicIF> |
subcomparator
INTERNAL: The comparator used to compare the types
|
Constructor and Description |
---|
TypedIFComparator(Comparator<TopicIF> subcomparator)
INTERNAL: Creates a TypedIfComparator which uses the given comparator
|
Modifier and Type | Method and Description |
---|---|
int |
compare(TypedIF obj1,
TypedIF obj2)
INTERNAL: Compares the given typedIF objects using the
comparator given to the constructor
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected Comparator<TopicIF> subcomparator
public TypedIFComparator(Comparator<TopicIF> subcomparator)
subcomparator
- the given comparatorpublic int compare(TypedIF obj1, TypedIF obj2)
compare
in interface Comparator<TypedIF>
obj1
- an object; typecast to TypedIF by the grabberobj2
- an object; typecast to TypedIF by the grabber