Top Description Constructors Methods
org.apache.tools.ant.types.resources.comparators

public Class Date

extends ResourceComparator
Class Inheritance
Imports
java.util.Comparator, org.apache.tools.ant.types.Resource

Compares Resources by last modification date.
Since
Ant 1.7

Constructor Summary

AccessConstructor and Description
public
Date()

Method Summary

Modifier and TypeMethod and Description
protected int

Returns:

a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
resourceCompare
(Resource
the first Resource.
foo
,
Resource
the second Resource.
bar
)

Implements abstract org.apache.tools.ant.types.resources.comparators.ResourceComparator.resourceCompare.

Compare two Resources.
Inherited from org.apache.tools.ant.types.resources.comparators.ResourceComparator:
compareequalshashCode

Constructor Detail

Dateback to summary
public Date()

Method Detail

resourceCompareback to summary
protected int resourceCompare(Resource foo, Resource bar)

Implements abstract org.apache.tools.ant.types.resources.comparators.ResourceComparator.resourceCompare.

Compare two Resources.

Parameters
foo:Resource

the first Resource.

bar:Resource

the second Resource.

Returns:int

a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.