com.planetj.taste.impl.model
Class ByItemPreferenceComparator

java.lang.Object
  extended by com.planetj.taste.impl.model.ByItemPreferenceComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<Preference>

public final class ByItemPreferenceComparator
extends java.lang.Object
implements java.util.Comparator<Preference>, java.io.Serializable

Comparator that orders Preferences by Item.

Author:
Sean Owen
See Also:
Serialized Form

Method Summary
 int compare(Preference o1, Preference o2)
          
static java.util.Comparator<Preference> getInstance()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Method Detail

getInstance

public static java.util.Comparator<Preference> getInstance()

compare

public int compare(Preference o1,
                   Preference o2)

Specified by:
compare in interface java.util.Comparator<Preference>

toString

@NotNull
public java.lang.String toString()
Overrides:
toString in class java.lang.Object