Package org.cip4.jdflib.util.file
Class FileSorter
- java.lang.Object
-
- org.cip4.jdflib.util.file.FileSorter
-
public class FileSorter extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classFileSorter.LastModifiedComparator
-
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 intsize()get the number of entries in this FileSorterjava.io.File[]sortLastModified(boolean bNewFirst)sort this by modification datejava.io.File[]sortLastModified(boolean bNewFirst, long minAge)sort this by modification date
-
-
-
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:
-
-