E
- the element typepublic static interface MultiSet.Entry<E>
The MultiSet.entrySet()
method returns a view of the multiset whose elements
implements this interface.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Compares the specified object with this entry for equality.
|
int |
getCount()
Returns the number of occurrences for the element of this entry.
|
E |
getElement()
Returns the element corresponding to this entry.
|
int |
hashCode()
Returns the hash code value for this multiset entry.
|
E getElement()
int getCount()
boolean equals(Object o)
More formally, two entries e1
and e2
represent
the same mapping if
(e1.getElement()==null ? e2.getElement()==null : e1.getElement().equals(e2.getElement())) && (e1.getCount()==e2.getCount())
Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.