public class ScopedIFComparator<T extends ScopedIF> extends Object implements Comparator<T>
Modifier and Type | Field and Description |
---|---|
protected TopicIF[] |
scope |
protected Comparator<? super T> |
subcomparator |
Constructor and Description |
---|
ScopedIFComparator() |
ScopedIFComparator(Collection<TopicIF> scope) |
ScopedIFComparator(Collection<TopicIF> scope,
Comparator<? super T> subcomparator) |
Modifier and Type | Method and Description |
---|---|
int |
compare(T obj1,
T obj2)
INTERNAL: Compares the two ScopedIF objects for their applicability
in the scope specified in 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 TopicIF[] scope
protected Comparator<? super T extends ScopedIF> subcomparator
public ScopedIFComparator()
public ScopedIFComparator(Collection<TopicIF> scope)
public ScopedIFComparator(Collection<TopicIF> scope, Comparator<? super T> subcomparator)
public int compare(T obj1, T obj2)
compare
in interface Comparator<T extends ScopedIF>
obj1
- An object implementing ScopedIF.obj2
- An object implementing ScopedIF.Comparator.compare(Object,Object)