com.epicentric.common
Class DateComparator
java.lang.Object
|
+--com.epicentric.common.DateComparator
- All Implemented Interfaces:
- com.sun.java.util.collections.Comparator
Deprecated. As of 4.0, to be removed in 8.0 or later.
- public class DateComparator
- extends Object
- implements com.sun.java.util.collections.Comparator
Date comparison utility.
|
Method Summary |
int |
compare(Object a,
Object b)
Deprecated. As of 4.0, to be removed in 8.0 or later. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.java.util.collections.Comparator |
equals |
DateComparator
public DateComparator()
- Deprecated.
compare
public int compare(Object a,
Object b)
- Deprecated. As of 4.0, to be removed in 8.0 or later.
- Casts two objects as dates and then compares them. If the
result of the cast is not a date for both values, a
ClassCastException will be thrown. Note that for comparison
purposes, null is considered to be greater than (after) any
non-null value.
- Specified by:
compare in interface com.sun.java.util.collections.Comparator
- Parameters:
a - first object in the comparison; may be nullb - second object in the comparison; may be null- Returns:
- -1 if
a is before b or
b is null
0 if a == b or
both a and b are null
1 if a is after b or
a is null
Copyright and Trademark Notices