Lines Matching defs:reference

1537      * Tests if the specified <code>File</code> is newer than the reference
1542 * @param reference the <code>File</code> of which the modification date
1545 * recently than the reference <code>File</code>
1547 * @throws IllegalArgumentException if the reference file is <code>null</code> or doesn't exist
1549 public static boolean isFileNewer(File file, File reference) {
1550 if (reference == null) {
1551 throw new IllegalArgumentException("No specified reference file");
1553 if (!reference.exists()) {
1554 throw new IllegalArgumentException("The reference file '"
1557 return isFileNewer(file, reference.lastModified());
1566 * @param date the date reference, must not be <code>null</code>
1581 * time reference.
1585 * @param timeMillis the time reference measured in milliseconds since the
1588 * the given time reference.
1604 * Tests if the specified <code>File</code> is older than the reference
1609 * @param reference the <code>File</code> of which the modification date
1612 * the reference <code>File</code>
1614 * @throws IllegalArgumentException if the reference file is <code>null</code> or doesn't exist
1616 public static boolean isFileOlder(File file, File reference) {
1617 if (reference == null) {
1618 throw new IllegalArgumentException("No specified reference file");
1620 if (!reference.exists()) {
1621 throw new IllegalArgumentException("The reference file '"
1624 return isFileOlder(file, reference.lastModified());
1633 * @param date the date reference, must not be <code>null</code>
1648 * time reference.
1652 * @param timeMillis the time reference measured in milliseconds since the
1655 * the given time reference.