站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

ComparableComparator (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.util
Class ComparableComparator

java.lang.Object
  extended bynet.sf.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