com.cc.framework.ui.model.imp
Class AppointmentComparator
java.lang.Object
com.cc.framework.ui.model.imp.AppointmentComparator
- All Implemented Interfaces:
- java.util.Comparator
- public class AppointmentComparator
- extends java.lang.Object
- implements java.util.Comparator
Comparator for Appointment items. This comparator compares
the appointment start times.
- Version:
- $Revision: 1.5 $
- Author:
- Harald Schulz
Method Summary |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
|
protected int |
compTime(java.util.Calendar a,
java.util.Calendar b)
Compares the times of the given Calendar objects with minute resolution.
|
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 |
AppointmentComparator
public AppointmentComparator()
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Specified by:
compare
in interface java.util.Comparator
- See Also:
Comparator.compare(java.lang.Object, java.lang.Object)
compTime
protected int compTime(java.util.Calendar a,
java.util.Calendar b)
- Compares the times of the given Calendar objects with minute resolution.
secounds and millis are ignored
- Parameters:
a
- time to compare tob
- time to compare with
- Returns:
- int
Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.