Package com.google.common.collect
Class RegularImmutableMap.Values<K,V>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- com.google.common.collect.ImmutableCollection<E>
-
- com.google.common.collect.ImmutableList<V>
-
- com.google.common.collect.RegularImmutableMap.Values<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<V>
,java.util.Collection<V>
,java.util.List<V>
,java.util.RandomAccess
- Enclosing class:
- RegularImmutableMap<K,V>
@GwtCompatible(emulated=true) private static final class RegularImmutableMap.Values<K,V> extends ImmutableList<V>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
RegularImmutableMap.Values.SerializedForm<V>
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableList
ImmutableList.Builder<E>, ImmutableList.SubList
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableCollection
ImmutableCollection.ArrayBasedBuilder<E>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) RegularImmutableMap<K,V>
map
-
Constructor Summary
Constructors Constructor Description Values(RegularImmutableMap<K,V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get(int index)
(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.ImmutableList
add, addAll, asImmutableList, asImmutableList, asList, builder, contains, copyIntoArray, copyOf, copyOf, copyOf, copyOf, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, of, of, of, of, of, of, of, of, of, of, of, of, of, remove, reverse, set, subList, subListUnchecked
-
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, remove, removeAll, retainAll, toArray, toArray
-
-
-
-
Field Detail
-
map
final RegularImmutableMap<K,V> map
-
-
Constructor Detail
-
Values
Values(RegularImmutableMap<K,V> map)
-
-
Method Detail
-
get
public V get(int index)
-
size
public int size()
-
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<V>
-
writeReplace
@GwtIncompatible java.lang.Object writeReplace()
- Overrides:
writeReplace
in classImmutableList<V>
-
-