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(java.lang.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(java.lang.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())
equals
in class java.lang.Object
o
- object to be compared for equality with this multiset entryint hashCode()
The hash code of a multiset entry e is defined to be:
(e==null ? 0 : e.hashCode()) ^ noOccurances)
hashCode
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"