public class DefaultBookmarksComparator extends Object implements Comparator<Entry>, Serializable
| Modifier and Type | Field and Description |
|---|---|
static DefaultBookmarksComparator |
DEFAULT_BOOKMARKS_COMPARATOR |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultBookmarksComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Entry e1,
Entry e2) |
protected int |
compareBookmarks(Entry e1,
Entry e2)
If both classes are not Bookmarks they are equal.
|
protected int |
compareEntries(Entry e1,
Entry e2)
Compairs the entries by name, note, created and modified properties in that
order.
|
protected int |
compareFolders(Entry e1,
Entry e2)
Folders are always greater than non-Folders, if they are both Folders
or both not Folders they are equal.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static DefaultBookmarksComparator DEFAULT_BOOKMARKS_COMPARATOR
public int compare(Entry e1, Entry e2)
compare in interface Comparator<Entry>protected int compareFolders(Entry e1, Entry e2)
protected int compareEntries(Entry e1, Entry e2)
Copyright © 2015 Jasig. All Rights Reserved.