T
- public class BaseBookmarks<T> extends java.lang.Object implements Bookmarks<T>
Modifier and Type | Class and Description |
---|---|
class |
BaseBookmarks.BaseBookmark |
ALPHABETICALLY_ORDER, LAST_USE_ORDER
EMPTY_UNMODIFIABLEBASICLIST
EMPTY_GETITEMWITHSIZEANDITERATOR
Constructor and Description |
---|
BaseBookmarks() |
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(int position) |
Bookmark |
get(java.lang.String name) |
int |
getOrder() |
java.util.Collection<Bookmark<T>> |
getOrdered() |
boolean |
hasBookmark(java.lang.String name) |
boolean |
isEmpty() |
java.util.Iterator<Bookmark<T>> |
iterator() |
boolean |
remove(Bookmark bookmark) |
boolean |
remove(java.lang.String bookmarkName) |
void |
setOrder(int order) |
int |
size() |
java.util.List<Bookmark<T>> |
toList() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEmpty, isEmpty, isEmptyQuietly
public boolean remove(java.lang.String bookmarkName)
public java.util.List<Bookmark<T>> toList()
toList
in interface UnmodifiableBasicList<Bookmark<T>>
public Bookmark add(java.lang.String name, T value)
Bookmarks
public boolean hasBookmark(java.lang.String name)
hasBookmark
in interface Bookmarks<T>
public java.util.Collection<Bookmark<T>> getOrdered()
getOrdered
in interface Bookmarks<T>