ikayaki.gui
Class ProjectExplorerTable.ProjectExplorerTableComparator
java.lang.Object
ikayaki.gui.ProjectExplorerTable.ProjectExplorerTableComparator
- All Implemented Interfaces:
- Comparator<File>
- Enclosing class:
- ProjectExplorerTable
private class ProjectExplorerTable.ProjectExplorerTableComparator
- extends Object
- implements Comparator<File>
Comparator used for ProjectExplorerTable sorting.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectExplorerTable.ProjectExplorerTableComparator
private ProjectExplorerTable.ProjectExplorerTableComparator()
compare
public int compare(File a,
File b)
- Specified by:
compare
in interface Comparator<File>
compareTimestamps
private int compareTimestamps(File a,
File b)
- Helper method for comparing project timestamps.
- Parameters:
a
- project file ab
- project file b
- Returns:
- <0 if a's timestamp < b's timestamp, 0 if the same, >0 if a's timestamp > b's timestamp