com.bigdata.relation.rule.eval
Class SolutionComparator<E>

java.lang.Object
  extended by com.bigdata.relation.rule.eval.SolutionComparator<E>
All Implemented Interfaces:
Comparator<ISolution<E>>

public class SolutionComparator<E>
extends Object
implements Comparator<ISolution<E>>

Wraps the Comparator obtained from a IKeyOrder such that it will ordered ISolutions by the elements reported by ISolution.get().

Version:
$Id: SolutionComparator.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Constructor Summary
SolutionComparator(IKeyOrder<E> keyOrder)
           
 
Method Summary
 int compare(ISolution<E> arg0, ISolution<E> arg1)
           
 
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

SolutionComparator

public SolutionComparator(IKeyOrder<E> keyOrder)
Method Detail

compare

public int compare(ISolution<E> arg0,
                   ISolution<E> arg1)
Specified by:
compare in interface Comparator<ISolution<E>>


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.