public class StorageElementsContainer<E extends Serializable> extends Object implements Serializable
| Constructor and Description |
|---|
StorageElementsContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E element)
Adds an element to the Container.
|
boolean |
contains(E element)
Returns true if the container contains provided element
|
Set<E> |
getAllElements()
Returns all elements in the container.
|
void |
remove(E element)
Removes an element from the Container IFF the "counter" for the element is 1 i.e.
|
void |
removeAll()
Removes all date from the container
|
void |
removeAll(E element)
Removes all occurrences of E from the container.
|
public Set<E> getAllElements()
public void add(E element)
public void remove(E element)
add(Serializable) method, then this method must be also called three times to remove the element from the
container.public boolean contains(E element)
public void removeAll(E element)
public void removeAll()
Copyright © 2017 SAP SE. All Rights Reserved.