org.tm4j.vtl.helpers
Class ExtractorComparator

java.lang.Object
  extended byorg.tm4j.vtl.helpers.ExtractorComparator
All Implemented Interfaces:
java.util.Comparator

public class ExtractorComparator
extends java.lang.Object
implements java.util.Comparator

Implementation of the Comparator interface which applies a UnaryFunction to the input arguments and compares the results.

Author:
Kal Ahmed (kal@techquila.com)

Constructor Summary
ExtractorComparator(uk.co.jezuk.mango.UnaryFunction extractor)
           
 
Method Summary
 int compare(java.lang.Object x, java.lang.Object y)
           
 
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
 

Constructor Detail

ExtractorComparator

public ExtractorComparator(uk.co.jezuk.mango.UnaryFunction extractor)
Method Detail

compare

public int compare(java.lang.Object x,
                   java.lang.Object y)
Specified by:
compare in interface java.util.Comparator