Package io.usethesource.capsule.core
Class PersistentTrieSet.AbstractSetNode<K>
java.lang.Object
io.usethesource.capsule.core.PersistentTrieSet.AbstractSetNode<K>
- All Implemented Interfaces:
Node
,SetNode<K,
,PersistentTrieSet.AbstractSetNode<K>> Serializable
,Iterable<K>
- Direct Known Subclasses:
PersistentTrieSet.CompactSetNode
- Enclosing class:
PersistentTrieSet<K>
protected abstract static class PersistentTrieSet.AbstractSetNode<K>
extends Object
implements SetNode<K,PersistentTrieSet.AbstractSetNode<K>>, Iterable<K>, 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) int
arity()
The arity of this trie node (i.e.private <T> ArrayView
<T> <T> ArrayView
<T> dataArray
(int category, int component) Creates an array abstraction for a subset of data stored in a node.(package private) abstract PersistentTrieSet.AbstractSetNode
<K> getNode
(int index) (package private) abstract Object
getSlot
(int index) (package private) abstract boolean
hasNodes()
(package private) abstract boolean
hasSlots()
Deprecated.(package private) static final <T> boolean
isAllowedToEdit
(AtomicReference<?> x, AtomicReference<?> y) iterator()
(package private) abstract int
(package private) abstract int
abstract ArrayView
<PersistentTrieSet.AbstractSetNode<K>> (package private) Iterator
<? extends PersistentTrieSet.AbstractSetNode<K>> Deprecated.int
int
size()
(package private) abstract int
stream()
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.Node
sizePredicate
Methods inherited from interface io.usethesource.capsule.core.trie.SetNode
contains, equivalent, findByKey, findFirst, getKey, getKeyHash, getPayload, hasPayload, intersect, payloadArity, removed, subtract, union, updated
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
TUPLE_LENGTH
static final int TUPLE_LENGTH- See Also:
-
-
Constructor Details
-
AbstractSetNode
protected AbstractSetNode()
-
-
Method Details
-
isAllowedToEdit
-
dataArray
Description copied from interface:Node
Creates an array abstraction for a subset of data stored in a node. -
categoryArrayView0
-
nodeArray
-
hasNodes
abstract boolean hasNodes() -
nodeArity
abstract int nodeArity() -
getNode
-
nodeIterator
Deprecated. -
hasSlots
Deprecated. -
slotArity
abstract int slotArity() -
getSlot
-
arity
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
public int size()- Specified by:
size
in interfaceSetNode<K,
PersistentTrieSet.AbstractSetNode<K>>
-
localPayloadHashCode
abstract int localPayloadHashCode() -
recursivePayloadHashCode
public int recursivePayloadHashCode()- Specified by:
recursivePayloadHashCode
in interfaceSetNode<K,
PersistentTrieSet.AbstractSetNode<K>>
-
iterator
-
spliterator
- Specified by:
spliterator
in interfaceIterable<K>
-
stream
-