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, writeReplaceprivate final transient ImmutableMultimap<K,V> multimap
private static final long serialVersionUID
Values(ImmutableMultimap<K,V> multimap)
public boolean contains(@CheckForNull
java.lang.Object object)
contains in interface java.util.Collection<V>contains in class ImmutableCollection<V>public UnmodifiableIterator<V> iterator()
ImmutableCollectioniterator in interface java.lang.Iterable<V>iterator in interface java.util.Collection<V>iterator in class ImmutableCollection<V>int copyIntoArray(java.lang.Object[] dst,
int offset)
ImmutableCollectionoffset + size().copyIntoArray in class ImmutableCollection<V>public int size()
boolean isPartialView()
ImmutableCollectiontrue 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>