public abstract class ResourceComparator extends DataType implements java.util.Comparator
description, location, project
Constructor and Description |
---|
ResourceComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object foo,
java.lang.Object 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(java.lang.Object foo, java.lang.Object bar)
compare
in interface java.util.Comparator
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
equals
in class java.lang.Object
o
- the Object to compare against.public int hashCode()
hashCode
in class java.lang.Object