public class DefaultBookmarksComparator extends java.lang.Object implements java.util.Comparator<Entry>, java.io.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.
|
public static DefaultBookmarksComparator DEFAULT_BOOKMARKS_COMPARATOR
public int compare(Entry e1, Entry e2)
compare in interface java.util.Comparator<Entry>protected int compareFolders(Entry e1, Entry e2)
protected int compareEntries(Entry e1, Entry e2)
Copyright © 2018 Jasig. All Rights Reserved.