public abstract class EntryComparer extends Object implements DatabaseEntryComparer
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
compareAsDatabaseEntries
If this is set true, then when compareEntries() is called the two objects
will be of type DatabaseEntries.
|
protected Database |
db |
| Modifier | Constructor and Description |
|---|---|
protected |
EntryComparer() |
|
EntryComparer(Database db) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object one,
Object two)
This should compare the two objects and return:
0 = the objects are equal.
|
protected abstract int |
compareEntries(Object one,
Object two)
Override this to compare to entries.
|
void |
setDatabase(Database db) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalsprotected Database db
protected boolean compareAsDatabaseEntries
protected EntryComparer()
public EntryComparer(Database db) throws IllegalArgumentException
IllegalArgumentExceptionpublic final int compare(Object one, Object two)
Comparercompare in interface Comparercompare in interface Comparatorone - the first objecttwo - the second objectprotected abstract int compareEntries(Object one, Object two)
public void setDatabase(Database db)
setDatabase in interface DatabaseEntryComparer