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
abstract static class Multisets.AbstractEntry<E> extends java.lang.Object implements Multiset.Entry<E>
-
-
Constructor Summary
Constructors Constructor Description AbstractEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)Indicates 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().java.lang.StringtoString()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
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object object)
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 classjava.lang.Object
-
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 classjava.lang.Object
-
toString
public java.lang.String 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 classjava.lang.Object
-
-