Leaf
Terminal node storing a key-value pair.
Value parameters
- prefix
-
the key suffix for this leaf
- value
-
the value stored in this leaf
Attributes
- Source
- MerkleTrieNode.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MerkleTrieNodeclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Inherited methods
Returns the children array if this node has children.
Returns the children array if this node has children.
Attributes
- Returns
-
Some(children) for Branch or BranchWithData, None for Leaf
- Inherited from:
- MerkleTrieNode
- Source
- MerkleTrieNode.scala
Returns the value stored in this node if present.
Returns the value stored in this node if present.
Attributes
- Returns
-
Some(value) for Leaf or BranchWithData, None for Branch
- Inherited from:
- MerkleTrieNode
- Source
- MerkleTrieNode.scala
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Returns a new node with the updated children.
Returns a new node with the updated children.
Value parameters
- children
-
the new children array
Attributes
- Returns
-
node with updated children
- Inherited from:
- MerkleTrieNode
- Source
- MerkleTrieNode.scala
Returns a new node with the updated prefix.
Returns a new node with the updated prefix.
Value parameters
- prefix
-
the new prefix
Attributes
- Returns
-
node with updated prefix
- Inherited from:
- MerkleTrieNode
- Source
- MerkleTrieNode.scala
Returns a new node with the updated value.
Returns a new node with the updated value.
Value parameters
- value
-
the new value
Attributes
- Returns
-
node with updated value
- Inherited from:
- MerkleTrieNode
- Source
- MerkleTrieNode.scala
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
MerkleTrieNode -> Any
- Inherited from:
- MerkleTrieNode
- Source
- MerkleTrieNode.scala