| org.apache.tools.ant.types.DataType org.apache.tools.ant.types.resources.comparators.ResourceComparator
All known Subclasses: org.apache.tools.ant.types.resources.comparators.Content, org.apache.tools.ant.types.resources.comparators.Exists, org.apache.tools.ant.types.resources.comparators.Name, org.apache.tools.ant.types.resources.comparators.DelegatedResourceComparator, org.apache.tools.ant.types.resources.comparators.Date, org.apache.tools.ant.types.resources.comparators.FileSystem, org.apache.tools.ant.types.resources.comparators.Type, org.apache.tools.ant.types.resources.comparators.Reverse, org.apache.tools.ant.types.resources.comparators.Size,
ResourceComparator | abstract public class ResourceComparator extends DataType implements Comparator(Code) | | Abstract Resource Comparator.
since: Ant 1.7 |
Method Summary | |
final public int | compare(Object foo, Object bar) Compare two objects.
Parameters: foo - the first Object. Parameters: bar - the second Object. | public boolean | equals(Object o) Test for equality with this ResourceComparator.
Parameters: o - the Object to compare against. | public synchronized int | hashCode() Hashcode based on the rules for equality. | abstract protected int | resourceCompare(Resource foo, Resource bar) Compare two Resources.
Parameters: foo - the first Resource. Parameters: bar - the second Resource. |
compare | final public int compare(Object foo, Object bar)(Code) | | Compare two objects.
Parameters: foo - the first Object. Parameters: bar - the second Object. a negative integer, zero, or a positive integer as the firstargument is less than, equal to, or greater than the second. throws: ClassCastException - if either argument is null. |
equals | public boolean equals(Object o)(Code) | | Test for equality with this ResourceComparator.
Parameters: o - the Object to compare against. true if the specified Object equals this one. |
hashCode | public synchronized int hashCode()(Code) | | Hashcode based on the rules for equality.
a hashcode. |
resourceCompare | abstract protected int resourceCompare(Resource foo, Resource bar)(Code) | | Compare two Resources.
Parameters: foo - the first Resource. Parameters: bar - the second Resource. a negative integer, zero, or a positive integer as the firstargument is less than, equal to, or greater than the second. |
|
|