public class

FileInfoComparator

extends Object
java.lang.Object
   ↳ com.pdftron.demo.utils.FileInfoComparator

Summary

Public Constructors
FileInfoComparator()
Public Methods
static Comparator<FileInfo> absolutePathOrder()
Sorts by absolute file path asc (a to z, within each directory)
static Comparator<ExternalFileInfo> externalDateOrder()
Sort by alphabetical order, folders first.
static Comparator<ExternalFileInfo> externalPathOrder()
Sort by alphabetical order, folders first.
static Comparator<FileInfo> fileNameOrder()
Sorts by filename asc (a to z)
static Comparator<FileInfo> folderDateOrder()
Sort by absolute path asc
static Comparator<FileInfo> folderPathOrder()
Sort by absolute path asc
static Comparator<FileInfo> modifiedDateOrder()
Sorts by modified date desc (newest first)
static Comparator<FileInfo> modifiedDateOrderOnly()
Sorts by modified date desc (newest first)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FileInfoComparator ()

Public Methods

public static Comparator<FileInfo> absolutePathOrder ()

Sorts by absolute file path asc (a to z, within each directory)

public static Comparator<ExternalFileInfo> externalDateOrder ()

Sort by alphabetical order, folders first.

public static Comparator<ExternalFileInfo> externalPathOrder ()

Sort by alphabetical order, folders first.

public static Comparator<FileInfo> fileNameOrder ()

Sorts by filename asc (a to z)

public static Comparator<FileInfo> folderDateOrder ()

Sort by absolute path asc

public static Comparator<FileInfo> folderPathOrder ()

Sort by absolute path asc

public static Comparator<FileInfo> modifiedDateOrder ()

Sorts by modified date desc (newest first)

public static Comparator<FileInfo> modifiedDateOrderOnly ()

Sorts by modified date desc (newest first)