org.sadun.util.polling
Class LIFOFileComparator

java.lang.Object
  extended byorg.sadun.util.BidirectionalComparator
      extended byorg.sadun.util.polling.DirectoryPoller.ModificationTimeComparator
          extended byorg.sadun.util.polling.LIFOFileComparator
All Implemented Interfaces:
java.util.Comparator

public class LIFOFileComparator
extends DirectoryPoller.ModificationTimeComparator

A comparator which produces a LIFO ordering on the files appearing in a directory (using the last modification time).

Author:
Cristiano Sadun

Field Summary
 
Fields inherited from class org.sadun.util.BidirectionalComparator
ascending
 
Constructor Summary
LIFOFileComparator()
           
 
Methods inherited from class org.sadun.util.polling.DirectoryPoller.ModificationTimeComparator
getComparisonValue
 
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

LIFOFileComparator

public LIFOFileComparator()


Copyright © 1999, 2000 Cristiano Sadun. This software is released under GPL.