Class FileSorter


  • public class FileSorter
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FileSorter​(java.io.File dir)  
      FileSorter​(java.io.File[] list)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int size()
      get the number of entries in this FileSorter
      java.io.File[] sortLastModified​(boolean bNewFirst)
      sort this by modification date
      java.io.File[] sortLastModified​(boolean bNewFirst, long minAge)
      sort this by modification date
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileSorter

        public FileSorter​(java.io.File dir)
        Parameters:
        dir -
      • FileSorter

        public FileSorter​(java.io.File[] list)
        Parameters:
        list -
    • Method Detail

      • sortLastModified

        public java.io.File[] sortLastModified​(boolean bNewFirst)
        sort this by modification date
        Parameters:
        bNewFirst - , if true newest entries are first, else oldest entries
        Returns:
        sort
      • sortLastModified

        public java.io.File[] sortLastModified​(boolean bNewFirst,
                                               long minAge)
        sort this by modification date
        Parameters:
        bNewFirst - , if true newest entries are first, else oldest entries
        Returns:
        sort
      • size

        public int size()
        get the number of entries in this FileSorter
        Returns: