public class FileSorter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
FileSorter.LastModifiedComparator |
| Constructor and Description |
|---|
FileSorter(java.io.File dir) |
FileSorter(java.io.File[] list) |
| Modifier and Type | Method and 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
|
public FileSorter(java.io.File dir)
dir - public FileSorter(java.io.File[] list)
list - public java.io.File[] sortLastModified(boolean bNewFirst)
bNewFirst - , if true newest entries are first, else oldest entriespublic java.io.File[] sortLastModified(boolean bNewFirst,
long minAge)
bNewFirst - , if true newest entries are first, else oldest entriespublic int size()