protected abstract static class AbstractMultiSet.AbstractEntry<E> extends Object implements MultiSet.Entry<E>
Modifier | Constructor and Description |
---|---|
protected |
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, wait
getCount, getElement
protected AbstractEntry()
public boolean equals(Object object)
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 entrypublic 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
Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.