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 |
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
- elementboolean isEmpty()
long size()
Collection<T> keys()
Copyright © 2012-2015 Oracle. All Rights Reserved.