java.lang.Cloneable
, java.util.Comparator<Resource>
public class DelegatedResourceComparator extends ResourceComparator
description, location, project
Constructor | Description |
---|---|
DelegatedResourceComparator() |
Modifier and Type | Method | Description |
---|---|---|
void |
add(ResourceComparator c) |
Add a delegate ResourceComparator.
|
protected void |
dieOnCircularReference(java.util.Stack<java.lang.Object> stk,
Project p) |
Overrides the version from DataType to recurse on nested ResourceSelector
s.
|
boolean |
equals(java.lang.Object o) |
Equality method based on the vector of resources,
or if a reference, the referredto object.
|
int |
hashCode() |
Hashcode based on the rules for equality.
|
protected int |
resourceCompare(Resource foo,
Resource bar) |
Compare two Resources.
|
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
compare, getCheckedRef
public void add(ResourceComparator c)
c
- the next delegate ResourceComparator.public boolean equals(java.lang.Object o)
equals
in interface java.util.Comparator<Resource>
equals
in class ResourceComparator
o
- the object to check against.public int hashCode()
hashCode
in class ResourceComparator
protected int resourceCompare(Resource foo, Resource bar)
resourceCompare
in class ResourceComparator
foo
- the first Resource.bar
- the second Resource.protected void dieOnCircularReference(java.util.Stack<java.lang.Object> stk, Project p) throws BuildException
dieOnCircularReference
in class DataType
stk
- the Stack of references.p
- the Project to resolve against.BuildException
- on error.