MultiSet.Entry<E>AbstractMapMultiSet.MultiSetEntryprotected abstract static class AbstractMultiSet.AbstractEntry<E> extends java.lang.Object implements MultiSet.Entry<E>
| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractEntry() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object object) |
Compares the specified object with this entry for equality.
|
int |
hashCode() |
Returns the hash code value for this multiset entry.
|
java.lang.String |
toString() |
getCount, getElementpublic boolean equals(java.lang.Object object)
MultiSet.EntryMore 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 java.lang.Objectobject - object to be compared for equality with this multiset entrypublic int hashCode()
MultiSet.EntryThe 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 java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2001-2019 - Apache Software Foundation