org.hibernate.util
Class ComparableComparator

java.lang.Object
  extended by org.hibernate.util.ComparableComparator
All Implemented Interfaces:
Comparator

public class ComparableComparator
extends Object
implements Comparator

Delegates to Comparable

Author:
Gavin King

Field Summary
static Comparator INSTANCE
           
 
Constructor Summary
ComparableComparator()
           
 
Method Summary
 int compare(Object x, Object y)
           
 
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
 

Field Detail

INSTANCE

public static final Comparator INSTANCE
Constructor Detail

ComparableComparator

public ComparableComparator()
Method Detail

compare

public int compare(Object x,
                   Object y)
Specified by:
compare in interface Comparator


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.