Class AbstractMapMultiSet.MultiSetEntry<E>
java.lang.Object
org.apache.commons.collections4.multiset.AbstractMultiSet.AbstractEntry<E>
org.apache.commons.collections4.multiset.AbstractMapMultiSet.MultiSetEntry<E>
- All Implemented Interfaces:
MultiSet.Entry<E>
- Enclosing class:
- AbstractMapMultiSet<E>
protected static class AbstractMapMultiSet.MultiSetEntry<E>
extends AbstractMultiSet.AbstractEntry<E>
Inner class MultiSetEntry.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
MultiSetEntry
(Map.Entry<E, AbstractMapMultiSet.MutableInteger> parentEntry) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
Returns the number of occurrences for the element of this entry.Returns the element corresponding to this entry.Methods inherited from class org.apache.commons.collections4.multiset.AbstractMultiSet.AbstractEntry
equals, hashCode, toString
-
Field Details
-
parentEntry
-
-
Constructor Details
-
MultiSetEntry
Constructs a new instance.- Parameters:
parentEntry
- the entry to decorate
-
-
Method Details
-
getCount
Description copied from interface:MultiSet.Entry
Returns the number of occurrences for the element of this entry.- Returns:
- the number of occurrences of the element
-
getElement
Description copied from interface:MultiSet.Entry
Returns the element corresponding to this entry.- Returns:
- the element corresponding to this entry
-