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 boolean
equals(java.lang.Object object)
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()
.java.lang.String
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
-
-
-
-
Method Detail
-
equals
public boolean equals(@CheckForNull java.lang.Object object)
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 classjava.lang.Object
-
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 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:
toString
in interfaceMultiset.Entry<E>
- Overrides:
toString
in classjava.lang.Object
-
-