org.apache.tools.ant.types.resources.comparators
Class Type
- Cloneable, Comparator
Compares Resources by is-directory status. As a container
of files, a directory is deemed "greater" than a file.
checkAttributesAllowed , checkChildrenAllowed , circularReference , clone , dieOnCircularReference , dieOnCircularReference , dieOnCircularReference , getCheckedRef , getCheckedRef , getCheckedRef , getCheckedRef , getDataTypeName , getRefid , invokeCircularReferenceCheck , isChecked , isReference , noChildrenAllowed , setChecked , setRefid , toString , tooManyAttributes |
resourceCompare
protected int resourceCompare(Resource foo,
Resource bar)
Compare two Resources.
- resourceCompare in interface ResourceComparator
foo
- the first Resource.bar
- the second Resource.
- a negative integer, zero, or a positive integer as the first
argument is less than, equal to, or greater than the second.