JIDE 3.5.15

com.jidesoft.comparator
Class PrioritizedObjectComparator

java.lang.Object
  extended by com.jidesoft.comparator.PrioritizedObjectComparator
All Implemented Interfaces:
Comparator<Object>

public class PrioritizedObjectComparator
extends Object
implements Comparator<Object>

Comparator for objects that implements Prioritized interface. It is a singleton pattern. You use getInstance() to get an instance.


Constructor Summary
protected PrioritizedObjectComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
           
static PrioritizedObjectComparator getInstance()
          Gets an instance of PrioritizedObjectComparator.
 
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

PrioritizedObjectComparator

protected PrioritizedObjectComparator()
Method Detail

getInstance

public static PrioritizedObjectComparator getInstance()
Gets an instance of PrioritizedObjectComparator.

Returns:
an instance Cof PrioritizedObjectComparator.

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator<Object>

JIDE 3.5.15