FileDocCategorySizeDatePackage
CalendarComparator.javaAPI DocHibernate 3.2.5513Sat Sep 04 08:01:56 BST 2004org.hibernate.util

CalendarComparator

public class CalendarComparator extends Object implements Comparator
author
Gavin King

Fields Summary
public static final Comparator
INSTANCE
Constructors Summary
Methods Summary
public intcompare(java.lang.Object x, java.lang.Object y)

		Calendar xcal = (Calendar) x;
		Calendar ycal = (Calendar) y;
		if ( xcal.before(ycal) ) return -1;
		if ( xcal.after(ycal) ) return 1;
		return 0;