Class HashNode
HashDigest<T>'s wrapper class, used in ITrie interface.
Inheritance
System.Object
HashNode
Namespace: Libplanet.Store.Trie.Nodes
Assembly: Libplanet.Store.dll
Syntax
public class HashNode : object, INode
Constructors
| Improve this Doc View SourceHashNode(HashDigest<SHA256>)
HashDigest<T>'s wrapper class, used in ITrie interface.
Declaration
public HashNode(HashDigest<SHA256> hashDigest)
Parameters
Type | Name | Description |
---|---|---|
HashDigest<SHA256> | hashDigest |
Properties
| Improve this Doc View SourceHashDigest
HashDigest<T>'s wrapper class, used in ITrie interface.
Declaration
public HashDigest<SHA256> HashDigest { get; }
Property Value
Type | Description |
---|---|
HashDigest<SHA256> |
Methods
| Improve this Doc View SourceEquals(HashNode)
HashDigest<T>'s wrapper class, used in ITrie interface.
Declaration
public bool Equals(HashNode other)
Parameters
Type | Name | Description |
---|---|---|
HashNode | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Nullable<Object>)
HashDigest<T>'s wrapper class, used in ITrie interface.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Object> | obj |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
HashDigest<T>'s wrapper class, used in ITrie interface.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
ToBencodex()
HashDigest<T>'s wrapper class, used in ITrie interface.
Declaration
public IValue ToBencodex()
Returns
Type | Description |
---|---|
IValue |
Operators
| Improve this Doc View SourceEquality(HashNode, HashNode)
HashDigest<T>'s wrapper class, used in ITrie interface.
Declaration
public static bool operator ==(HashNode left, HashNode right)
Parameters
Type | Name | Description |
---|---|---|
HashNode | left | |
HashNode | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(HashNode, HashNode)
HashDigest<T>'s wrapper class, used in ITrie interface.
Declaration
public static bool operator !=(HashNode left, HashNode right)
Parameters
Type | Name | Description |
---|---|---|
HashNode | left | |
HashNode | right |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
IEquatable<>