java.lang.Cloneable
, java.util.Comparator<Resource>
Content
, Date
, DelegatedResourceComparator
, Exists
, FileSystem
, Name
, Reverse
, Size
, Type
public abstract class ResourceComparator extends DataType implements java.util.Comparator<Resource>
description, location, project
Constructor | Description |
---|---|
ResourceComparator() |
Modifier and Type | Method | Description |
---|---|---|
int |
compare(Resource foo,
Resource bar) |
Compare two objects.
|
boolean |
equals(java.lang.Object o) |
Test for equality with this ResourceComparator.
|
protected ResourceComparator |
getCheckedRef() |
Performs the check for circular references and returns the
referenced object.
|
int |
hashCode() |
Hashcode based on the rules for equality.
|
protected abstract int |
resourceCompare(Resource foo,
Resource bar) |
Compare two Resources.
|
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, 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
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.protected ResourceComparator getCheckedRef()
DataType
getCheckedRef
in class DataType