protected abstract static class AbstractMultiSet.AbstractEntry<E> extends Objectimplements MultiSet .Entry <E>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEntry()
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object
Compares the specified object with this entry for equality.
|
int |
hashCode()
Returns the hash code value for this multiset entry.
|
String |
toString()
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCount, getElementpublic boolean equals(Objectobject)
MultiSet.Entry
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 interface
MultiSet.Entry <E>
equals in class
Object
object - object to be compared for equality with this multiset entry
public int hashCode()
MultiSet.Entry
The hash code of a multiset entry e is defined to be:
(e==null ? 0 : e.hashCode()) ^ noOccurances)
hashCode in interface
MultiSet.Entry <E>
hashCode in class
Object
public StringtoString()