Package com.google.common.collect
Class ImmutableMultiset.EntrySet
java.lang.Object
java.util.AbstractCollection<Multiset.Entry<E>>
com.google.common.collect.ImmutableCollection<Multiset.Entry<E>>
com.google.common.collect.ImmutableSet<Multiset.Entry<E>>
com.google.common.collect.ImmutableSet.CachingAsList<Multiset.Entry<E>>
com.google.common.collect.IndexedImmutableSet<Multiset.Entry<E>>
com.google.common.collect.ImmutableMultiset.EntrySet
- All Implemented Interfaces:
Serializable
,Iterable<Multiset.Entry<E>>
,Collection<Multiset.Entry<E>>
,Set<Multiset.Entry<E>>
- Enclosing class:
ImmutableMultiset<E>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableSet
ImmutableSet.Builder<E>, ImmutableSet.CachingAsList<E>, ImmutableSet.Indexed<E>
-
Field Summary
FieldsFields inherited from class com.google.common.collect.ImmutableSet
MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
(package private) Multiset.Entry
<E> get
(int index) int
hashCode()
(package private) boolean
Returnstrue
if this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods.private void
readObject
(ObjectInputStream stream) int
size()
(package private) Object
Methods inherited from class com.google.common.collect.IndexedImmutableSet
copyIntoArray, createAsList, forEach, iterator, spliterator
Methods inherited from class com.google.common.collect.ImmutableSet.CachingAsList
asList
Methods inherited from class com.google.common.collect.ImmutableSet
builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, isHashCodeFast, of, of, of, of, of, of, of, toImmutableSet
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArray
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
EntrySet
private EntrySet()
-
-
Method Details
-
isPartialView
boolean isPartialView()Description copied from class:ImmutableCollection
Returnstrue
if this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods. This is generally used to determine whethercopyOf
implementations should make an explicit copy to avoid memory leaks.- Specified by:
isPartialView
in classImmutableCollection<Multiset.Entry<E>>
-
get
- Specified by:
get
in classIndexedImmutableSet<Multiset.Entry<E>>
-
size
public int size()- Specified by:
size
in interfaceCollection<Multiset.Entry<E>>
- Specified by:
size
in interfaceSet<Multiset.Entry<E>>
- Specified by:
size
in classAbstractCollection<Multiset.Entry<E>>
-
contains
- Specified by:
contains
in interfaceCollection<Multiset.Entry<E>>
- Specified by:
contains
in interfaceSet<Multiset.Entry<E>>
- Specified by:
contains
in classImmutableCollection<Multiset.Entry<E>>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<Multiset.Entry<E>>
- Specified by:
hashCode
in interfaceSet<Multiset.Entry<E>>
- Overrides:
hashCode
in classImmutableSet<Multiset.Entry<E>>
-
writeReplace
Object writeReplace()- Overrides:
writeReplace
in classIndexedImmutableSet<Multiset.Entry<E>>
-
readObject
- Throws:
InvalidObjectException
-