common
Class AbstractMultiset.Entry
java.lang.Object
common.AbstractMultiset.Entry
- All Implemented Interfaces:
- Multiset.Entry
- Enclosing class:
- AbstractMultiset
public abstract static class AbstractMultiset.Entry
- extends java.lang.Object
- implements Multiset.Entry
Abstract implementation of the Multiset.Entry interface.
Method Summary |
boolean |
equals(java.lang.Object o)
|
abstract int |
getCount()
Returns the count of this element. |
abstract java.lang.Object |
getElement()
Returns the element in this entry. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AbstractMultiset.Entry
public AbstractMultiset.Entry()
getElement
public abstract java.lang.Object getElement()
- Returns the element in this entry.
- Specified by:
getElement
in interface Multiset.Entry
getCount
public abstract int getCount()
- Returns the count of this element.
- Specified by:
getCount
in interface Multiset.Entry
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object