Package com.google.common.collect
Class Multisets.AbstractEntry<E>
java.lang.Object
com.google.common.collect.Multisets.AbstractEntry<E>
- All Implemented Interfaces:
Multiset.Entry<E>
- Direct Known Subclasses:
Multisets.ImmutableEntry
- Enclosing class:
Multisets
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether an object equals this entry, following the behavior specified inMultiset.Entry.equals(java.lang.Object)
.int
hashCode()
Return this entry's hash code, following the behavior specified inMultiset.Entry.hashCode()
.toString()
Returns a string representation of this multiset entry.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.common.collect.Multiset.Entry
getCount, getElement
-
Constructor Details
-
AbstractEntry
AbstractEntry()
-
-
Method Details
-
equals
Indicates whether an object equals this entry, following the behavior specified inMultiset.Entry.equals(java.lang.Object)
.- Specified by:
equals
in interfaceMultiset.Entry<E>
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()Return this entry's hash code, following the behavior specified inMultiset.Entry.hashCode()
.- Specified by:
hashCode
in interfaceMultiset.Entry<E>
- Overrides:
hashCode
in classObject
-
toString
Returns a string representation of this multiset entry. The string representation consists of the associated element if the associated count is one, and otherwise the associated element followed by the characters " x " (space, x and space) followed by the count. Elements and counts are converted to strings as byString.valueOf
.- Specified by:
toString
in interfaceMultiset.Entry<E>
- Overrides:
toString
in classObject
-