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
Constant
DEFAULT_BOOKMARKS_COMPARATOR |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultBookmarksComparator()
Constructor for DefaultBookmarksComparator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Entry e1,
Entry e2)
compare.
|
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
DEFAULT_BOOKMARKS_COMPARATORprotected DefaultBookmarksComparator()
Constructor for DefaultBookmarksComparator.
protected int compareFolders(Entry e1, Entry e2)
protected int compareEntries(Entry e1, Entry e2)
Copyright © 2019 Jasig. All Rights Reserved.