mavis.gui
Class ProjectExplorerTable.ProjectExplorerTableComparator

java.lang.Object
  extended by mavis.gui.ProjectExplorerTable.ProjectExplorerTableComparator
All Implemented Interfaces:
java.util.Comparator<java.io.File>
Enclosing class:
ProjectExplorerTable

private class ProjectExplorerTable.ProjectExplorerTableComparator
extends java.lang.Object
implements java.util.Comparator<java.io.File>

Comparator used for ProjectExplorerTable sorting.


Constructor Summary
private ProjectExplorerTable.ProjectExplorerTableComparator()
           
 
Method Summary
 int compare(java.io.File a, java.io.File b)
           
private  int compareTimestamps(java.io.File a, java.io.File b)
          Helper method for comparing project timestamps.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ProjectExplorerTable.ProjectExplorerTableComparator

private ProjectExplorerTable.ProjectExplorerTableComparator()
Method Detail

compare

public int compare(java.io.File a,
                   java.io.File b)
Specified by:
compare in interface java.util.Comparator<java.io.File>

compareTimestamps

private int compareTimestamps(java.io.File a,
                              java.io.File b)
Helper method for comparing project timestamps.

Parameters:
a - project file a
b - project file b
Returns:
<0 if a's timestamp < b's timestamp, 0 if the same, >0 if a's timestamp > b's timestamp