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 TypeMethodDescriptionbooleanIndicates whether an object equals this entry, following the behavior specified inMultiset.Entry.equals(java.lang.Object).inthashCode()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, waitMethods 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:
equalsin interfaceMultiset.Entry<E>- Overrides:
equalsin classObject
-
hashCode
public int hashCode()Return this entry's hash code, following the behavior specified inMultiset.Entry.hashCode().- Specified by:
hashCodein interfaceMultiset.Entry<E>- Overrides:
hashCodein 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:
toStringin interfaceMultiset.Entry<E>- Overrides:
toStringin classObject
-