T - type of the item.public interface Store<T>
| Modifier and Type | Method and Description |
|---|---|
void |
add(T item)
Adds an item to the store.
|
boolean |
contains(T item)
Verifies if the given item is contained in the store.
|
Collection<T> |
getContent()
Gets an unmodifiable snapshot of the store.
|
void |
remove(T item)
Removes an item from the store.
|
void add(T item)
item - listener to add.void remove(T item)
item - listener to remove.boolean contains(T item)
item - item to check.true if item belongs to the store,
false otherwise.Collection<T> getContent()
Copyright © 2014. All Rights Reserved.