T - Data type of the elements that the container holds.public interface RuleDataContainer<T extends java.io.Serializable>
add(Serializable) method.delete(Serializable) method is
called the same number of times.getAll() method returns "unified"
view of the data, which means that if many threads will insert the same element, it will be reported only once.| Modifier and Type | Method and Description |
|---|---|
void |
add(T element)
Adds an element to the container.
|
void |
clear()
Removes all elements from the container
|
boolean |
contains(T element)
Checks if given element is contained within this container.
|
void |
delete(T element)
Removes an element from the container if an element has been added only once.
|
void |
deleteAll(T element)
Removes an element from the container regardless of how many times it has been added.
|
java.util.Collection<T> |
getAll()
Returns all elements that the container holds.
|
void add(T element)
getAll() method will return only one
instance of such element. If an element is added many times, the delete(Serializable) method must be
called the same number of times to remove it from the container.boolean contains(T element)
void clear()
void delete(T element)
void deleteAll(T element)
contains(Serializable) will return false.java.util.Collection<T> getAll()
Copyright © 2018 SAP SE. All Rights Reserved.