Package com.jalios.io

Class FileDateComparator

  • All Implemented Interfaces:
    java.util.Comparator<java.io.File>

    public class FileDateComparator
    extends java.lang.Object
    implements java.util.Comparator<java.io.File>
    File Comparator using lastModified value of Files to sort.
    Since:
    jcms-5.7.0
    Version:
    $Revision: 31503 $
    Author:
    Jean-Philippe Encausse
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String REVISION  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.io.File f1, java.io.File f2)  
      • 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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • FileDateComparator

        public FileDateComparator()
    • Method Detail

      • compare

        public int compare​(java.io.File f1,
                           java.io.File f2)
        Specified by:
        compare in interface java.util.Comparator<java.io.File>