java.lang.Cloneable, java.util.Comparator<Resource>Content, Date, DelegatedResourceComparator, Exists, FileSystem, Name, Reverse, Size, Typepublic 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, thenComparingLongcheckAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectpublic 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.Objecto - the Object to compare against.public int hashCode()
hashCode in class java.lang.Objectprotected abstract int resourceCompare(Resource foo, Resource bar)
foo - the first Resource.bar - the second Resource.protected ResourceComparator getCheckedRef()
DataTypegetCheckedRef in class DataType