|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sadun.util.BidirectionalComparator org.sadun.util.polling.DirectoryPoller.ModificationTimeComparator
This comparator can be used to list files based on modification time.
Field Summary |
Fields inherited from class org.sadun.util.BidirectionalComparator |
ascending |
Constructor Summary | |
DirectoryPoller.ModificationTimeComparator(boolean ascending)
Create a comparator which will impose an ascending or descending order on modification times depending on the value of the parameter |
Method Summary | |
protected long |
getComparisonValue(java.io.File f1,
java.io.File f2)
Must return the comparation value (0, greater than 0 or lower than 0) for the two files. |
Methods inherited from class org.sadun.util.BidirectionalComparator |
compare, computeResultFromValue |
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 |
Constructor Detail |
public DirectoryPoller.ModificationTimeComparator(boolean ascending)
ascending
- if true, older files will be ordered before newer files.Method Detail |
protected final long getComparisonValue(java.io.File f1, java.io.File f2)
org.sadun.util.BidirectionalComparator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |