org.sat4j.core
Class DefaultComparator<A extends Comparable<A>>

java.lang.Object
  extended by org.sat4j.core.DefaultComparator<A>
Type Parameters:
A - a class of Comparable objects.
All Implemented Interfaces:
Serializable, Comparator<A>

public final class DefaultComparator<A extends Comparable<A>>
extends Object
implements Comparator<A>, Serializable

A simple comparator for comparable objects.

Author:
daniel
See Also:
Serialized Form

Constructor Summary
DefaultComparator()
           
 
Method Summary
 int compare(A a, A b)
           
 
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

DefaultComparator

public DefaultComparator()
Method Detail

compare

public int compare(A a,
                   A b)
Specified by:
compare in interface Comparator<A extends Comparable<A>>


Copyright © 2010 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.