T
- public interface Bookmarks<T> extends UnmodifiableBasicList<Bookmark<T>>
Modifier and Type | Field and Description |
---|---|
static int |
ALPHABETICALLY_ORDER |
static int |
LAST_USE_ORDER |
EMPTY_UNMODIFIABLEBASICLIST
EMPTY_GETITEMWITHSIZEANDITERATOR
Modifier and Type | Method and Description |
---|---|
Bookmark |
add(java.lang.String name,
T value)
This method add an element with a key name.
|
Bookmark |
add(T value) |
java.util.List<Bookmark<T>> |
filter(java.util.function.Predicate<Bookmark<T>> filter) |
Bookmark |
get(java.lang.String name) |
int |
getOrder() |
java.util.Collection<Bookmark<T>> |
getOrdered() |
boolean |
hasBookmark(java.lang.String name) |
boolean |
remove(Bookmark bookmark) |
boolean |
remove(java.lang.String bookmarkName) |
void |
setOrder(int order) |
toList
isEmpty, isEmpty, isEmpty, isEmptyQuietly
static final int ALPHABETICALLY_ORDER
static final int LAST_USE_ORDER
Bookmark add(java.lang.String name, T value)
name
- Name of the element for the bookmark.value
- boolean remove(Bookmark bookmark)
boolean remove(java.lang.String bookmarkName)
Bookmark get(java.lang.String name)
boolean hasBookmark(java.lang.String name)
int getOrder()
void setOrder(int order)