Serializable
, Multiset<T>
HashMultiset
, TreeMultiset
public 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)
Multiset
public void add(T element, long add)
Multiset
public long count(T element)
Multiset
public Collection<Map.Entry<T,Long>> entrySet()
Multiset
public boolean isEmpty()
Multiset
public long size()
Multiset
public Collection<T> keys()
Multiset
Copyright © 2012-2016 Oracle. All Rights Reserved.