public class FileSorter
extends Object
List
Constructor and Description |
---|
FileSorter() |
Modifier and Type | Method and Description |
---|---|
static boolean |
needSort(String orderBy)
Check if the file list needs a sort.
|
static List<FileResource> |
sort(List<FileResource> files,
String orderBy,
int maxFiles)
Sort list of files.
|
public static boolean needSort(String orderBy)
orderBy
- the order by algorithmpublic static List<FileResource> sort(List<FileResource> files, String orderBy, int maxFiles)
files
- the list of filesorderBy
- the order bymaxFiles
- the maximum number of filesCopyright © 2010-2020 Toolsverse. All Rights Reserved.