net.ontopia.utils
Class GrabberComparator<T,G>
java.lang.Object
net.ontopia.utils.GrabberComparator<T,G>
- All Implemented Interfaces:
- java.util.Comparator<T>
public class GrabberComparator<T,G>
- extends java.lang.Object
- implements java.util.Comparator<T>
INTERNAL: Comparator that compares grabbed objects using a
comparator.
Method Summary |
int |
compare(T object1,
T object2)
|
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 |
grabber1
protected GrabberIF<T,G> grabber1
grabber2
protected GrabberIF<T,G> grabber2
comparator
protected java.util.Comparator<G> comparator
GrabberComparator
public GrabberComparator(GrabberIF<T,G> grabber,
java.util.Comparator<G> comparator)
GrabberComparator
public GrabberComparator(GrabberIF<T,G> grabber1,
GrabberIF<T,G> grabber2,
java.util.Comparator<G> comparator)
compare
public int compare(T object1,
T object2)
- Specified by:
compare
in interface java.util.Comparator<T>
Copyright © 2000-2012 Ontopia.