Record Class ParsedAccountData

java.lang.Object
java.lang.Record
software.sava.rpc.json.http.response.ParsedAccountData

public record ParsedAccountData(software.sava.core.accounts.PublicKey program, int space, boolean isNative, software.sava.core.accounts.PublicKey mint, software.sava.core.accounts.PublicKey owner, software.sava.core.accounts.PublicKey freezeAuthority, software.sava.core.accounts.PublicKey mintAuthority, Boolean isInitialized, String state, String type, TokenAmount tokenAmount, List<software.sava.core.accounts.PublicKey> addresses) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    ParsedAccountData(software.sava.core.accounts.PublicKey program, int space, boolean isNative, software.sava.core.accounts.PublicKey mint, software.sava.core.accounts.PublicKey owner, software.sava.core.accounts.PublicKey freezeAuthority, software.sava.core.accounts.PublicKey mintAuthority, Boolean isInitialized, String state, String type, TokenAmount tokenAmount, List<software.sava.core.accounts.PublicKey> addresses)
    Creates an instance of a ParsedAccountData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<software.sava.core.accounts.PublicKey>
    Returns the value of the addresses record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    software.sava.core.accounts.PublicKey
    Returns the value of the freezeAuthority record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the isInitialized record component.
    boolean
    Returns the value of the isNative record component.
    software.sava.core.accounts.PublicKey
    Returns the value of the mint record component.
    software.sava.core.accounts.PublicKey
    Returns the value of the mintAuthority record component.
    software.sava.core.accounts.PublicKey
    Returns the value of the owner record component.
    parse(systems.comodal.jsoniter.JsonIterator ji, Context context)
     
    software.sava.core.accounts.PublicKey
    Returns the value of the program record component.
    int
    Returns the value of the space record component.
    Returns the value of the state record component.
    Returns the value of the tokenAmount record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the type record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ParsedAccountData

      public ParsedAccountData(software.sava.core.accounts.PublicKey program, int space, boolean isNative, software.sava.core.accounts.PublicKey mint, software.sava.core.accounts.PublicKey owner, software.sava.core.accounts.PublicKey freezeAuthority, software.sava.core.accounts.PublicKey mintAuthority, Boolean isInitialized, String state, String type, TokenAmount tokenAmount, List<software.sava.core.accounts.PublicKey> addresses)
      Creates an instance of a ParsedAccountData record class.
      Parameters:
      program - the value for the program record component
      space - the value for the space record component
      isNative - the value for the isNative record component
      mint - the value for the mint record component
      owner - the value for the owner record component
      freezeAuthority - the value for the freezeAuthority record component
      mintAuthority - the value for the mintAuthority record component
      isInitialized - the value for the isInitialized record component
      state - the value for the state record component
      type - the value for the type record component
      tokenAmount - the value for the tokenAmount record component
      addresses - the value for the addresses record component
  • Method Details

    • parse

      public static ParsedAccountData parse(systems.comodal.jsoniter.JsonIterator ji, Context context)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • program

      public software.sava.core.accounts.PublicKey program()
      Returns the value of the program record component.
      Returns:
      the value of the program record component
    • space

      public int space()
      Returns the value of the space record component.
      Returns:
      the value of the space record component
    • isNative

      public boolean isNative()
      Returns the value of the isNative record component.
      Returns:
      the value of the isNative record component
    • mint

      public software.sava.core.accounts.PublicKey mint()
      Returns the value of the mint record component.
      Returns:
      the value of the mint record component
    • owner

      public software.sava.core.accounts.PublicKey owner()
      Returns the value of the owner record component.
      Returns:
      the value of the owner record component
    • freezeAuthority

      public software.sava.core.accounts.PublicKey freezeAuthority()
      Returns the value of the freezeAuthority record component.
      Returns:
      the value of the freezeAuthority record component
    • mintAuthority

      public software.sava.core.accounts.PublicKey mintAuthority()
      Returns the value of the mintAuthority record component.
      Returns:
      the value of the mintAuthority record component
    • isInitialized

      public Boolean isInitialized()
      Returns the value of the isInitialized record component.
      Returns:
      the value of the isInitialized record component
    • state

      public String state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • tokenAmount

      public TokenAmount tokenAmount()
      Returns the value of the tokenAmount record component.
      Returns:
      the value of the tokenAmount record component
    • addresses

      public List<software.sava.core.accounts.PublicKey> addresses()
      Returns the value of the addresses record component.
      Returns:
      the value of the addresses record component