|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Multiset.Entry<E>
A multiset entry (element-count pair). The Multiset.entrySet() method
returns a view of the multiset whose elements are of this class. The
behavior of a previously retrieved Entry instance after the underlying
multiset has been modified is undefined.
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
int |
getCount()
Returns the number of occurrences of the corresponding element in the multiset. |
E |
getElement()
Returns the multiset element corresponding to this entry. |
int |
hashCode()
|
| Method Detail |
|---|
E getElement()
int getCount()
boolean equals(Object o)
Returns true if the given object is also a multiset entry and
the two entries represent the same element and count. More formally, two
entries a and b are equal if:
((a.getElement() == null)
? (b.getElement() == null) : a.getElement().equals(b.getElement()))
&& (a.getCount() == b.getCount())
equals in class Objectint hashCode()
The hash code of a multiset entry e is defined to be:
((e.getElement() == null) ? 0 : e.getElement().hashCode())
^ e.getCount()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||