org.apache.tools.ant.types.resources.comparators
Class Reverse
- Cloneable, Comparator
Reverses another ResourceComparator. If no nested ResourceComparator
is supplied, the compared Resources' natural order will be reversed.
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, toString, tooManyAttributes |
Reverse
public Reverse()
Default constructor.
Reverse
public Reverse(ResourceComparator c)
Construct a new Reverse, supplying the ResourceComparator to be reversed.
c - the ResourceComparator to reverse.
add
public void add(ResourceComparator c)
Add the ResourceComparator to reverse.
c - the ResourceComparator to add.
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 greater than, equal to, or less than the second.