Package com.google.common.collect
Class RegularImmutableTable.CellSet
java.lang.Object
java.util.AbstractCollection<Table.Cell<R,C,V>>
com.google.common.collect.ImmutableCollection<Table.Cell<R,C,V>>
com.google.common.collect.ImmutableSet<Table.Cell<R,C,V>>
com.google.common.collect.ImmutableSet.CachingAsList<Table.Cell<R,C,V>>
com.google.common.collect.IndexedImmutableSet<Table.Cell<R,C,V>>
com.google.common.collect.RegularImmutableTable.CellSet
- All Implemented Interfaces:
Serializable
,Iterable<Table.Cell<R,
,C, V>> Collection<Table.Cell<R,
,C, V>> Set<Table.Cell<R,
C, V>>
- Enclosing class:
RegularImmutableTable<R,
C, V>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableSet
ImmutableSet.Builder<E>, ImmutableSet.CachingAsList<E>, ImmutableSet.Indexed<E>
-
Field Summary
Fields inherited from class com.google.common.collect.ImmutableSet
MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
(package private) Table.Cell
<R, C, V> get
(int index) (package private) boolean
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) Object
Methods inherited from class com.google.common.collect.IndexedImmutableSet
copyIntoArray, createAsList, forEach, iterator, spliterator
Methods inherited from class com.google.common.collect.ImmutableSet.CachingAsList
asList
Methods inherited from class com.google.common.collect.ImmutableSet
builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, hashCode, isHashCodeFast, of, of, of, of, of, of, of, toImmutableSet
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArray
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
CellSet
private CellSet()
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceCollection<Table.Cell<R,
C, V>> - Specified by:
size
in interfaceSet<Table.Cell<R,
C, V>> - Specified by:
size
in classAbstractCollection<Table.Cell<R,
C, V>>
-
get
- Specified by:
get
in classIndexedImmutableSet<Table.Cell<R,
C, V>>
-
contains
- Specified by:
contains
in interfaceCollection<Table.Cell<R,
C, V>> - Specified by:
contains
in interfaceSet<Table.Cell<R,
C, V>> - Specified by:
contains
in classImmutableCollection<Table.Cell<R,
C, V>>
-
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<Table.Cell<R,
C, V>>
-
writeReplace
Object writeReplace()- Overrides:
writeReplace
in classIndexedImmutableSet<Table.Cell<R,
C, V>>
-