protected abstract static class AbstractMultiSet.AbstractEntry<E> extends Object implements MultiSet.Entry<E>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMultiSet.AbstractEntry() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object 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(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 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 ObjectCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.