Package io.usethesource.capsule.core
Class PersistentTrieSetMultimap.AbstractSetMultimapNode<K,V>
java.lang.Object
io.usethesource.capsule.core.PersistentTrieSetMultimap.AbstractSetMultimapNode<K,V>
- All Implemented Interfaces:
MultimapNode<K,
,V, Set.Immutable<V>, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V>> Node
,Serializable
- Direct Known Subclasses:
PersistentTrieSetMultimap.CompactSetMultimapNode
- Enclosing class:
PersistentTrieSetMultimap<K,
V>
protected abstract static class PersistentTrieSetMultimap.AbstractSetMultimapNode<K,V>
extends Object
implements MultimapNode<K,V,Set.Immutable<V>,PersistentTrieSetMultimap.AbstractSetMultimapNode<K,V>>, Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
(package private) static final int
Fields inherited from interface io.usethesource.capsule.core.trie.Node
SIZE_EMPTY, SIZE_MORE_THAN_ONE, SIZE_ONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract int
arity()
The arity of this trie node (i.e.private <T> ArrayView
<T> categoryArrayView0
(int component) private <T> ArrayView
<T> categoryArrayView1
(int component) <T> ArrayView
<T> dataArray
(int category, int component) Creates an array abstraction for a subset of data stored in a node.(package private) abstract K
getCollectionKey
(int index) (package private) abstract Set.Immutable
<V> getCollectionValue
(int index) (package private) abstract PersistentTrieSetMultimap.AbstractSetMultimapNode
<K, V> getNode
(int index) (package private) abstract K
getSingletonKey
(int index) (package private) abstract V
getSingletonValue
(int index) (package private) abstract Object
getSlot
(int index) (package private) abstract boolean
hasNodes()
(package private) abstract boolean
(package private) abstract boolean
hasSlots()
(package private) static final boolean
isAllowedToEdit
(AtomicReference<?> x, AtomicReference<?> y) final boolean
mustUnbox
(Set.Immutable<V> values) (package private) abstract int
(package private) Iterator
<? extends PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V>> Deprecated.(package private) abstract int
(package private) int
size()
(package private) abstract int
final V
unbox
(Set.Immutable<V> values) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.usethesource.capsule.core.trie.MultimapNode
containsKey, containsTuple, copyAndUpdateBitmaps, findByKey, inserted, insertedMultiple, insertedSingle, patternOfSingleton, removed, removed, typeOfSingleton, updated, updatedMultiple, updatedSingle
Methods inherited from interface io.usethesource.capsule.core.trie.Node
sizePredicate
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
TUPLE_LENGTH
static final int TUPLE_LENGTH- See Also:
-
-
Constructor Details
-
AbstractSetMultimapNode
protected AbstractSetMultimapNode()
-
-
Method Details
-
mustUnbox
- Specified by:
mustUnbox
in interfaceMultimapNode<K,
V, Set.Immutable<V>, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V>>
-
unbox
- Specified by:
unbox
in interfaceMultimapNode<K,
V, Set.Immutable<V>, PersistentTrieSetMultimap.AbstractSetMultimapNode<K, V>>
-
isAllowedToEdit
-
dataArray
Description copied from interface:Node
Creates an array abstraction for a subset of data stored in a node. -
categoryArrayView0
-
categoryArrayView1
-
nodeArray
-
hasNodes
abstract boolean hasNodes() -
nodeArity
abstract int nodeArity() -
getNode
-
nodeIterator
@Deprecated Iterator<? extends PersistentTrieSetMultimap.AbstractSetMultimapNode<K,V>> nodeIterator()Deprecated. -
hasPayload
-
payloadArity
-
getSingletonKey
-
getSingletonValue
-
getCollectionKey
-
getCollectionValue
-
hasSlots
abstract boolean hasSlots() -
slotArity
abstract int slotArity() -
getSlot
-
arity
abstract int arity()The arity of this trie node (i.e. number of values and nodes stored on this level).- Returns:
- sum of nodes and values stored within
-
size
int size()
-