Home | History | Annotate | Download | only in comparator

Lines Matching refs:File

3  * contributor license agreements.  See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
19 import java.io.File;
25 * (see {@link File#lastModified()}).
33 * List<File> list = ...
40 * File[] array = ...
48 public class LastModifiedFileComparator implements Comparator<File>, Serializable {
51 public static final Comparator<File> LASTMODIFIED_COMPARATOR = new LastModifiedFileComparator();
54 public static final Comparator<File> LASTMODIFIED_REVERSE = new ReverseComparator<File>(LASTMODIFIED_COMPARATOR);
59 * @param obj1 The first file to compare
60 * @param obj2 The second file to compare
61 * @return a negative value if the first file's lastmodified date/time
64 * is greater than the second file.
67 public int compare(File file1, File file2) {