Package org.symbol.sdk.symbol
Record Class Merkle.MerklePart
java.lang.Object
java.lang.Record
org.symbol.sdk.symbol.Merkle.MerklePart
- Enclosing class:
Merkle
- MerklePart
- Represents part of a merkle tree proof.
-
Constructor Summary
ConstructorsConstructorDescriptionMerklePart(CryptoTypes.Hash256 hash, boolean isLeft) Creates an instance of aMerklePartrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.hash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.booleanisLeft()Returns the value of theisLeftrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MerklePart
Creates an instance of aMerklePartrecord class.- Parameters:
hash- the value for thehashrecord componentisLeft- the value for theisLeftrecord component
-
-
Method Details
-
toString
- MerklePart.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.
-
hashCode
public final int hashCode()- MerklePart.hashCode
- Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
-
equals
- MerklePart.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 '=='.
-
hash
- MerklePart.hash
- Returns the value of the
hashrecord component.
- Returns:
- the value of the
hashrecord component
-
isLeft
public boolean isLeft()- MerklePart.isLeft
- Returns the value of the
isLeftrecord component.
- Returns:
- the value of the
isLeftrecord component
-