net.ontopia.utils
Class GrabberComparator<T,G>

java.lang.Object
  extended by 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.


Field Summary
protected  java.util.Comparator<G> comparator
           
protected  GrabberIF<T,G> grabber1
           
protected  GrabberIF<T,G> grabber2
           
 
Constructor Summary
GrabberComparator(GrabberIF<T,G> grabber, java.util.Comparator<G> comparator)
           
GrabberComparator(GrabberIF<T,G> grabber1, GrabberIF<T,G> grabber2, java.util.Comparator<G> 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
 

Field Detail

grabber1

protected GrabberIF<T,G> grabber1

grabber2

protected GrabberIF<T,G> grabber2

comparator

protected java.util.Comparator<G> comparator
Constructor Detail

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)
Method Detail

compare

public int compare(T object1,
                   T object2)
Specified by:
compare in interface java.util.Comparator<T>


Copyright © 2000-2012 Ontopia.