public interface Multiset<A> extends Iterable<A>, Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
add(A a) |
boolean |
add(A a,
int i) |
void |
clear() |
boolean |
contains(A a) |
boolean |
containsUnchecked(Object a) |
int |
count(A a) |
int |
countAll(Collection<? extends A> a) |
int |
countAllUnchecked(Collection<?> a) |
int |
countUnchecked(Object a) |
Set<A> |
domain()
domain().equals(supportMap().keySet())
|
boolean |
isEmpty() |
boolean |
remove(A a) |
boolean |
removeAll(Collection<? extends A> c) |
boolean |
removeAllUnchecked(Collection<?> c) |
boolean |
removeDomain(A a) |
boolean |
removeDomainUnchecked(Object a) |
boolean |
removeUnchecked(Object a) |
boolean |
retainAll(Collection<? extends A> c) |
boolean |
retainAllUnchecked(Collection<?> c) |
Map<A,Integer> |
supportMap()
ATTENTION assume no Map.Entry.getValue()==0 is in map, but domain key is
removed in case that count == 0.
|
forEach, iterator, spliterator
boolean isEmpty()
void clear()
boolean add(A a)
boolean add(A a, int i)
boolean contains(A a)
boolean containsUnchecked(Object a)
boolean remove(A a)
boolean removeUnchecked(Object a)
boolean removeDomain(A a)
boolean removeDomainUnchecked(Object a)
boolean removeAll(Collection<? extends A> c)
boolean removeAllUnchecked(Collection<?> c)
boolean retainAll(Collection<? extends A> c)
boolean retainAllUnchecked(Collection<?> c)
Map<A,Integer> supportMap()
int count(A a)
int countUnchecked(Object a)
int countAll(Collection<? extends A> a)
int countAllUnchecked(Collection<?> a)
see also the complete user documentation .