public class MultiSet<E>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<E,java.lang.Integer> |
frequencyMap
How often each element appears in this multiset.
|
Constructor and Description |
---|
MultiSet()
Creates a new, empty MultiSet.
|
Modifier and Type | Method and Description |
---|---|
void |
add(E obj) |
java.util.Set<E> |
getElements() |
boolean |
isEmpty() |
void |
remove(E obj) |
void |
removeAllInstances(java.util.Set<E> values) |
private final java.util.Map<E,java.lang.Integer> frequencyMap