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

public Class Type

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

Compares Resources by is-directory status. As a container of files, a directory is deemed "greater" than a file.
Since
Ant 1.7

Constructor Summary

AccessConstructor and Description
public
Type()

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

Typeback to summary
public Type()

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.