|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.acmsl.antmake.CvsUtils.DateComparator
Sorts CVS entries by date.
Constructor Summary | |
CvsUtils.DateComparator()
|
Method Summary | |
int |
compare(CvsEntry first,
CvsEntry second)
Compares given CVS entries by their date. |
int |
compare(java.lang.Object first,
java.lang.Object second)
Compares its two arguments for order. |
boolean |
equals(java.lang.Object comparator)
Checks if given comparator is semantically equal to this instance. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CvsUtils.DateComparator()
Method Detail |
public int compare(java.lang.Object first, java.lang.Object second) throws java.lang.ClassCastException
compare
in interface java.util.Comparator
first
- the first entry.second
- the second entry.
java.lang.ClassCastException
- if the arguments' types prevent
them from being compared by this Comparator.public int compare(CvsEntry first, CvsEntry second)
first
- the first entry.second
- the second entry.
public boolean equals(java.lang.Object comparator)
equals
in interface java.util.Comparator
equals
in class java.lang.Object
comparator
- the comparator to check against.
true
if both instances are semantically
equal.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |