java.lang.Object
java.lang.Record
software.sava.rpc.json.http.response.TxInstruction
-
Constructor Summary
ConstructorsConstructorDescriptionTxInstruction(int programIdIndex, int[] accountIndices, String b58Data, int stackHeight) Creates an instance of aTxInstructionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionint[]Returns the value of theaccountIndicesrecord component.b58Data()Returns the value of theb58Datarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static TxInstructionparse(systems.comodal.jsoniter.JsonIterator ji) static List<TxInstruction> parseInstructions(systems.comodal.jsoniter.JsonIterator ji) intReturns the value of theprogramIdIndexrecord component.intReturns the value of thestackHeightrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TxInstruction
Creates an instance of aTxInstructionrecord class.- Parameters:
programIdIndex- the value for theprogramIdIndexrecord componentaccountIndices- the value for theaccountIndicesrecord componentb58Data- the value for theb58Datarecord componentstackHeight- the value for thestackHeightrecord component
-
-
Method Details
-
parse
-
parseInstructions
-
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()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
programIdIndex
public int programIdIndex()Returns the value of theprogramIdIndexrecord component.- Returns:
- the value of the
programIdIndexrecord component
-
accountIndices
public int[] accountIndices()Returns the value of theaccountIndicesrecord component.- Returns:
- the value of the
accountIndicesrecord component
-
b58Data
Returns the value of theb58Datarecord component.- Returns:
- the value of the
b58Datarecord component
-
stackHeight
public int stackHeight()Returns the value of thestackHeightrecord component.- Returns:
- the value of the
stackHeightrecord component
-