public class Last_Modified_Comparator
extends java.lang.Object
implements java.util.Comparator<java.io.File>
Note: Because only one component of a File
object is
compared, this comparator imposes orderings that are inconsistent with
equals.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
Class identification name with source code version and date.
|
Constructor and Description |
---|
Last_Modified_Comparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.io.File f1,
java.io.File f2)
Compares its two arguments for order.
|
public static final java.lang.String ID
public int compare(java.io.File f1, java.io.File f2)
last-modified times
.
Note: Because only one component of a File
object is
compared, this comparator imposes orderings that are inconsistent with
equals.
compare
in interface java.util.Comparator<java.io.File>
f1
- the first file to be compared.f2
- the second file to be compared.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona