T
- element typepublic interface Multiset<T>
Modifier and Type | Method and Description |
---|---|
void |
add(T element)
Add the element to the multiset
|
void |
add(T element,
long count)
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 |
isEmpty()
Answers if Multiset is empty
|
Collection<T> |
keys()
Answers the collection of keys
|
long |
size()
Answers the size of multiset.
|
void add(T element)
element
- element to addvoid add(T element, long count)
element
- element to addcount
- number of elements to addlong count(T element)
element
- elementCollection<Map.Entry<T,Long>> entrySet()
boolean isEmpty()
long size()
Collection<T> keys()
Copyright © 2012–2020 Oracle. All rights reserved.