Package com.google.common.collect
Class RegularImmutableTable.CellSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- com.google.common.collect.ImmutableCollection<E>
-
- com.google.common.collect.ImmutableSet<E>
-
- com.google.common.collect.IndexedImmutableSet<Table.Cell<R,C,V>>
-
- com.google.common.collect.RegularImmutableTable.CellSet
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<Table.Cell<R,C,V>>,java.util.Collection<Table.Cell<R,C,V>>,java.util.Set<Table.Cell<R,C,V>>
- Enclosing class:
- RegularImmutableTable<R,C,V>
private final class RegularImmutableTable.CellSet extends IndexedImmutableSet<Table.Cell<R,C,V>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableSet
ImmutableSet.Builder<E>, ImmutableSet.Indexed<E>
-
-
Field Summary
-
Fields inherited from class com.google.common.collect.ImmutableSet
HASH_FLOODING_FPP, MAX_RUN_MULTIPLIER, MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS
-
-
Constructor Summary
Constructors Modifier Constructor Description privateCellSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.lang.Object object)(package private) Table.Cell<R,C,V>get(int index)(package private) booleanisPartialView()Returnstrueif this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods.intsize()-
Methods inherited from class com.google.common.collect.IndexedImmutableSet
copyIntoArray, createAsList, forEach, iterator, spliterator
-
Methods inherited from class com.google.common.collect.ImmutableSet
asList, builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, hashCode, hashFloodingDetected, isHashCodeFast, of, of, of, of, of, of, of, rebuildHashTable, toImmutableSet, writeReplace
-
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArray
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfacejava.util.Collection<Table.Cell<R,C,V>>- Specified by:
sizein interfacejava.util.Set<Table.Cell<R,C,V>>- Specified by:
sizein classjava.util.AbstractCollection<Table.Cell<R,C,V>>
-
get
Table.Cell<R,C,V> get(int index)
- Specified by:
getin classIndexedImmutableSet<Table.Cell<R,C,V>>
-
contains
public boolean contains(java.lang.Object object)
- Specified by:
containsin interfacejava.util.Collection<Table.Cell<R,C,V>>- Specified by:
containsin interfacejava.util.Set<Table.Cell<R,C,V>>- Specified by:
containsin classImmutableCollection<Table.Cell<R,C,V>>
-
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<Table.Cell<R,C,V>>
-
-