public abstract class ResourceComparator extends DataType implements java.util.Comparator<Resource>
description, location, project
Constructor and Description |
---|
ResourceComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Resource foo,
Resource bar)
Compare two objects.
|
boolean |
equals(java.lang.Object o)
Test for equality with this ResourceComparator.
|
int |
hashCode()
Hashcode based on the rules for equality.
|
protected abstract int |
resourceCompare(Resource foo,
Resource bar)
Compare two Resources.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public final int compare(Resource foo, Resource bar)
compare
in interface java.util.Comparator<Resource>
foo
- the first Object.bar
- the second Object.java.lang.ClassCastException
- if either argument is null.public boolean equals(java.lang.Object o)
equals
in interface java.util.Comparator<Resource>
equals
in class java.lang.Object
o
- the Object to compare against.public int hashCode()
hashCode
in class java.lang.Object
protected abstract int resourceCompare(Resource foo, Resource bar)
foo
- the first Resource.bar
- the second Resource.