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, uniqueSetaddAll, containsAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, retainAllpublic boolean contains(java.lang.Object o)
AbstractMultiSetcontains in interface java.util.Collection<K>contains in class AbstractMultiSet<K>o - the object to search forpublic boolean isEmpty()
public int size()
AbstractMultiSetprotected int uniqueElements()
AbstractMultiSetuniqueElements in class AbstractMultiSet<K>public int getCount(java.lang.Object object)
AbstractMultiSetprotected java.util.Iterator<MultiSet.Entry<K>> createEntrySetIterator()
AbstractMultiSetcreateEntrySetIterator in class AbstractMultiSet<K>