private static final class ImmutableMultimap.Values<K,V> extends ImmutableCollection<V>
ImmutableCollection.Builder<E>
Modifier and Type | Field and Description |
---|---|
private ImmutableMultimap<K,V> |
multimap |
private static long |
serialVersionUID |
SPLITERATOR_CHARACTERISTICS
Constructor and Description |
---|
Values(ImmutableMultimap<K,V> multimap) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.Object object) |
(package private) int |
copyIntoArray(java.lang.Object[] dst,
int offset)
Copies the contents of this immutable collection into the specified array at the specified
offset.
|
(package private) boolean |
isPartialView()
Returns
true if this immutable collection's implementation contains references to
user-created objects that aren't accessible via this collection's methods. |
UnmodifiableIterator<V> |
iterator()
Returns an unmodifiable iterator across the elements in this collection.
|
int |
size() |
add, addAll, asList, clear, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, spliterator, toArray, toArray, writeReplace
private final transient ImmutableMultimap<K,V> multimap
private static final long serialVersionUID
Values(ImmutableMultimap<K,V> multimap)
public boolean contains(java.lang.Object object)
contains
in interface java.util.Collection<V>
contains
in class ImmutableCollection<V>
public UnmodifiableIterator<V> iterator()
ImmutableCollection
iterator
in interface java.lang.Iterable<V>
iterator
in interface java.util.Collection<V>
iterator
in class ImmutableCollection<V>
@GwtIncompatible int copyIntoArray(java.lang.Object[] dst, int offset)
ImmutableCollection
offset + size()
.copyIntoArray
in class ImmutableCollection<V>
public int size()
boolean isPartialView()
ImmutableCollection
true
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 whether copyOf
implementations should make an explicit copy to avoid
memory leaks.isPartialView
in class ImmutableCollection<V>