Serializable, Multiset<T>HashMultiset, TreeMultisetpublic class DelegatingMultiset<T> extends Object implements Multiset<T>, Serializable
| Constructor | Description |
|---|---|
DelegatingMultiset(Map<T,Long> map) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(T element) |
Add the element to the multiset
|
void |
add(T element,
long add) |
Add the element to the multiset
|
long |
count(T element) |
Count the elements in multiset
|
Collection<Map.Entry<T,Long>> |
entrySet() |
Get all associations of the multiset.
|
boolean |
equals(Object o) |
|
int |
hashCode() |
|
boolean |
isEmpty() |
Answers if Multiset is empty
|
Collection<T> |
keys() |
Answers the collection of keys
|
long |
size() |
Answers the size of multiset.
|
public void add(T element)
Multisetpublic void add(T element, long add)
Multisetpublic long count(T element)
Multisetpublic Collection<Map.Entry<T,Long>> entrySet()
Multisetpublic boolean isEmpty()
Multisetpublic long size()
Multisetpublic Collection<T> keys()
MultisetCopyright © 2012-2017 Oracle. All Rights Reserved.