Package org.symbol.sdk.symbol
Record Class Merkle.PatriciaTreePath
java.lang.Object
java.lang.Record
org.symbol.sdk.symbol.Merkle.PatriciaTreePath
- Enclosing class:
Merkle
- PatriciaTreePath
- Path in a Patricia merkle tree.
-
Constructor Summary
ConstructorsConstructorDescriptionPatriciaTreePath(byte[] path, int size) Creates an instance of aPatriciaTreePathrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.byte[]path()Returns the value of thepathrecord component.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PatriciaTreePath
public PatriciaTreePath(byte[] path, int size) Creates an instance of aPatriciaTreePathrecord class.- Parameters:
path- the value for thepathrecord componentsize- the value for thesizerecord component
-
-
Method Details
-
equals
- PatriciaTreePath.equals
- Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with
Objects::equals(Object,Object); primitive components are compared with '=='.
-
hashCode
public int hashCode()- PatriciaTreePath.hashCode
- Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
-
toString
- PatriciaTreePath.toString
- Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
-
path
public byte[] path()- PatriciaTreePath.path
- Returns the value of the
pathrecord component.
- Returns:
- the value of the
pathrecord component
-
size
public int size()- PatriciaTreePath.size
- Returns the value of the
sizerecord component.
- Returns:
- the value of the
sizerecord component
-