MultiSet.Entry<E>
AbstractMapMultiSet.MultiSetEntry
protected 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, getElement
public boolean equals(java.lang.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 java.lang.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 java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2001-2019 - Apache Software Foundation