Package com.google.common.collect
Class ImmutableMultimap.Values<K,V>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- com.google.common.collect.ImmutableCollection<V>
-
- com.google.common.collect.ImmutableMultimap.Values<K,V>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<V>,java.util.Collection<V>
- Enclosing class:
- ImmutableMultimap<K,V>
private static final class ImmutableMultimap.Values<K,V> extends ImmutableCollection<V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableCollection
ImmutableCollection.Builder<E>
-
-
Field Summary
Fields Modifier and Type Field Description private ImmutableMultimap<K,V>multimapprivate static longserialVersionUID-
Fields inherited from class com.google.common.collect.ImmutableCollection
SPLITERATOR_CHARACTERISTICS
-
-
Constructor Summary
Constructors Constructor Description Values(ImmutableMultimap<K,V> multimap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.lang.Object object)(package private) intcopyIntoArray(java.lang.Object[] dst, int offset)Copies the contents of this immutable collection into the specified array at the specified offset.(package private) booleanisPartialView()Returnstrueif 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.intsize()-
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, asList, clear, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, spliterator, toArray, toArray, writeReplace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
multimap
private final transient ImmutableMultimap<K,V> multimap
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Values
Values(ImmutableMultimap<K,V> multimap)
-
-
Method Detail
-
contains
public boolean contains(java.lang.Object object)
- Specified by:
containsin interfacejava.util.Collection<K>- Specified by:
containsin classImmutableCollection<V>
-
iterator
public UnmodifiableIterator<V> iterator()
Description copied from class:ImmutableCollectionReturns an unmodifiable iterator across the elements in this collection.- Specified by:
iteratorin interfacejava.util.Collection<K>- Specified by:
iteratorin interfacejava.lang.Iterable<K>- Specified by:
iteratorin classImmutableCollection<V>
-
copyIntoArray
@GwtIncompatible int copyIntoArray(java.lang.Object[] dst, int offset)
Description copied from class:ImmutableCollectionCopies the contents of this immutable collection into the specified array at the specified offset. Returnsoffset + size().- Overrides:
copyIntoArrayin classImmutableCollection<V>
-
size
public int size()
-
isPartialView
boolean isPartialView()
Description copied from class:ImmutableCollectionReturnstrueif 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 whethercopyOfimplementations should make an explicit copy to avoid memory leaks.- Specified by:
isPartialViewin classImmutableCollection<V>
-
-