com.free2be.dimensions.device
Class ConfidenceComparator

java.lang.Object
  extended by com.free2be.dimensions.device.ConfidenceComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator

public class ConfidenceComparator
extends java.lang.Object
implements java.util.Comparator, java.io.Serializable

Used to compare the current confidence level for device factories order highest in a sorted set first.

See Also:
HighestConfidenceComparator, Serialized Form

Constructor Summary
protected ConfidenceComparator()
           
 
Method Summary
 int compare(DeviceFactory left, DeviceFactory right)
           
 int compare(java.lang.Object left, java.lang.Object right)
           
static ConfidenceComparator getInstance()
           
 
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

ConfidenceComparator

protected ConfidenceComparator()
Method Detail

compare

public int compare(DeviceFactory left,
                   DeviceFactory right)

compare

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

getInstance

public static ConfidenceComparator getInstance()