T - set typepublic interface CountingSet<T>
extends java.util.Set<T>
Because it would be breaking the set semantics removal is not allowed.
All removal methods but AbstractBasicCountingSet.clear()
therefore will throw an UnsupportedOperationException.
| Modifier and Type | Method and Description |
|---|---|
int |
getCount(T item)
Get the count how often any item was added.
|
int getCount(T item)
item - item to look for0 if the item was never added
(or the clear code has been used after its addition)