V - the type of the valuepublic class OrderedLocalTagsStore<V> extends Object implements TagsStore<V>
| Constructor and Description |
|---|
OrderedLocalTagsStore() |
| Modifier and Type | Method and Description |
|---|---|
OrderedLocalTagsStore<V> |
addItem(String displayValue,
V item)
Adds a new item with its display value
|
OrderedLocalTagsStore<V> |
addItems(Map<String,V> items)
Adds a list of items with their display values
|
OrderedLocalTagsStore<V> |
clear()
Clears the store
|
static <V> OrderedLocalTagsStore<V> |
create() |
Map<String,V> |
filter(String searchValue)
Filters the items based on the search query
|
String |
getDisplayValue(V value) |
V |
getItemByDisplayValue(String displayValue) |
Map<String,V> |
getItems() |
OrderedLocalTagsStore<V> |
removeItem(V item)
Removes item from the store
|
public static <V> OrderedLocalTagsStore<V> create()
V - the type of the objectpublic OrderedLocalTagsStore<V> addItem(String displayValue, V item)
public OrderedLocalTagsStore<V> removeItem(V item)
removeItem in interface TagsStore<V>item - the itempublic OrderedLocalTagsStore<V> clear()
public OrderedLocalTagsStore<V> addItems(Map<String,V> items)
public V getItemByDisplayValue(String displayValue)
getItemByDisplayValue in interface TagsStore<V>displayValue - the display value to search fordisplayValuepublic String getDisplayValue(V value)
getDisplayValue in interface TagsStore<V>value - the item to get the display value forCopyright © 2019–2022 Dominokit. All rights reserved.