Package com.google.common.collect
Class ImmutableMultiset.EntrySet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- com.google.common.collect.ImmutableCollection<E>
-
- com.google.common.collect.ImmutableSet<E>
-
- com.google.common.collect.ImmutableSet.Indexed<Multiset.Entry<E>>
-
- com.google.common.collect.ImmutableMultiset.EntrySet
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<Multiset.Entry<E>>
,java.util.Collection<Multiset.Entry<E>>
,java.util.Set<Multiset.Entry<E>>
- Enclosing class:
- ImmutableMultiset<E>
private final class ImmutableMultiset.EntrySet extends ImmutableSet.Indexed<Multiset.Entry<E>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableSet
ImmutableSet.Builder<E>, ImmutableSet.Indexed<E>
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableCollection
ImmutableCollection.ArrayBasedBuilder<E>
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class com.google.common.collect.ImmutableSet
MAX_TABLE_SIZE
-
-
Constructor Summary
Constructors Modifier Constructor Description private
EntrySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(java.lang.Object o)
(package private) Multiset.Entry<E>
get(int index)
int
hashCode()
(package private) boolean
isPartialView()
Returnstrue
if this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods.int
size()
(package private) java.lang.Object
writeReplace()
-
Methods inherited from class com.google.common.collect.ImmutableSet.Indexed
createAsList, iterator
-
Methods inherited from class com.google.common.collect.ImmutableSet
asList, builder, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, isHashCodeFast, of, of, of, of, of, of, of
-
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, copyIntoArray, remove, removeAll, retainAll, toArray, toArray
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
Multiset.Entry<E> get(int index)
- Specified by:
get
in classImmutableSet.Indexed<Multiset.Entry<E>>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<Multiset.Entry<E>>
- Specified by:
size
in interfacejava.util.Set<Multiset.Entry<E>>
- Specified by:
size
in classjava.util.AbstractCollection<Multiset.Entry<E>>
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interfacejava.util.Collection<Multiset.Entry<E>>
- Specified by:
contains
in interfacejava.util.Set<Multiset.Entry<E>>
- Specified by:
contains
in classImmutableCollection<Multiset.Entry<E>>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Collection<Multiset.Entry<E>>
- Specified by:
hashCode
in interfacejava.util.Set<Multiset.Entry<E>>
- Overrides:
hashCode
in classImmutableSet<Multiset.Entry<E>>
-
writeReplace
java.lang.Object writeReplace()
- Overrides:
writeReplace
in classImmutableSet<Multiset.Entry<E>>
-
-