E - the type of elements maintained by this setpublic interface SetState<E> extends ExtendedState<E>
State which wrap access to a Set of elements.| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e)
Adds the specified element to this set if it is not already present.
|
boolean |
addAll(Collection<? extends E> c)
Adds all of the elements in the specified collection to this set if
they're not already present (optional operation).
|
void |
clear()
Clear the whole
Set contained in this State |
Set<E> |
get() |
boolean add(E e)
e - element to be added to this settrue if this set did not already contain the
specified elementboolean addAll(Collection<? extends E> c)
c - collection containing elements to be added to this settrue if this set changed as a result of the callvoid clear()
Set contained in this StateCopyright © 2013. All rights reserved.