private class AbstractMultiValuedMap.KeysMultiSet extends AbstractMultiSet<K>
Modifier and Type | Class and Description |
---|---|
private class |
AbstractMultiValuedMap.KeysMultiSet.MapEntryTransformer |
AbstractMultiSet.AbstractEntry<E>, AbstractMultiSet.EntrySet<E>, AbstractMultiSet.UniqueSet<E>
MultiSet.Entry<E>
Modifier | Constructor and Description |
---|---|
private |
KeysMultiSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.Object o)
Determines if the multiset contains the given element.
|
protected java.util.Iterator<MultiSet.Entry<K>> |
createEntrySetIterator()
Creates an entry set iterator.
|
int |
getCount(java.lang.Object object)
Returns the number of occurrence of the given element in this multiset by
iterating over its entrySet.
|
boolean |
isEmpty() |
int |
size()
Returns the number of elements in this multiset.
|
protected int |
uniqueElements()
Returns the number of unique elements in this multiset.
|
add, add, clear, createEntrySet, createUniqueSet, createUniqueSetIterator, doReadObject, doWriteObject, entrySet, equals, hashCode, iterator, remove, remove, removeAll, setCount, toString, uniqueSet
addAll, containsAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, retainAll
public boolean contains(java.lang.Object o)
AbstractMultiSet
contains
in interface java.util.Collection<K>
contains
in class AbstractMultiSet<K>
o
- the object to search forpublic boolean isEmpty()
public int size()
AbstractMultiSet
protected int uniqueElements()
AbstractMultiSet
uniqueElements
in class AbstractMultiSet<K>
public int getCount(java.lang.Object object)
AbstractMultiSet
protected java.util.Iterator<MultiSet.Entry<K>> createEntrySetIterator()
AbstractMultiSet
createEntrySetIterator
in class AbstractMultiSet<K>