ResourceComparatorpublic abstract class ResourceComparator extends org.apache.tools.ant.types.DataType implements ComparatorAbstract Resource Comparator. |
Methods Summary |
---|
public final int | compare(java.lang.Object foo, java.lang.Object bar)Compare two objects.
dieOnCircularReference();
ResourceComparator c =
isReference() ? (ResourceComparator) getCheckedRef() : this;
return c.resourceCompare((Resource) foo, (Resource) bar);
| public boolean | equals(java.lang.Object o)Test for equality with this ResourceComparator.
if (isReference()) {
return getCheckedRef().equals(o);
}
if (o == null) {
return false;
}
return o == this || o.getClass().equals(getClass());
| public synchronized int | hashCode()Hashcode based on the rules for equality.
if (isReference()) {
return getCheckedRef().hashCode();
}
return getClass().hashCode();
| protected abstract int | resourceCompare(org.apache.tools.ant.types.Resource foo, org.apache.tools.ant.types.Resource bar)Compare two Resources.
|
|