public class StorageElementsContainer<E extends java.io.Serializable>
extends java.lang.Object
implements java.io.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
|
java.util.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 java.util.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 © 2018 SAP SE. All Rights Reserved.