public class CountingHashSet<T> extends AbstractBasicCountingSet<T>
Because it would be breaking the set semantics removal is not allowed.
All removal methods but AbstractBasicCountingSet.clear()
therefore will throw an UnsupportedOperationException.
creator, map| Constructor and Description |
|---|
CountingHashSet()
Constructor.
|
CountingHashSet(java.util.function.Supplier<Counter> creator)
Constructor.
|
add, addAll, clear, contains, containsAll, getCount, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArraypublic CountingHashSet(@NotNull java.util.function.Supplier<Counter> creator)
creator - counter creator used for counter creation,
see Counter.SIMPLE or Counter.THREAD_SAFE
for standard onespublic CountingHashSet()
simple counters.