Module software.sava.rpc
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
ConstructorsConstructorDescriptionParsedAccountData(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 aParsedAccountDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<software.sava.core.accounts.PublicKey> Returns the value of theaddressesrecord component.final booleanIndicates whether some other object is "equal to" this one.software.sava.core.accounts.PublicKeyReturns the value of thefreezeAuthorityrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theisInitializedrecord component.booleanisNative()Returns the value of theisNativerecord component.software.sava.core.accounts.PublicKeymint()Returns the value of themintrecord component.software.sava.core.accounts.PublicKeyReturns the value of themintAuthorityrecord component.software.sava.core.accounts.PublicKeyowner()Returns the value of theownerrecord component.static ParsedAccountDatasoftware.sava.core.accounts.PublicKeyprogram()Returns the value of theprogramrecord component.intspace()Returns the value of thespacerecord component.state()Returns the value of thestaterecord component.Returns the value of thetokenAmountrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
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 aParsedAccountDatarecord class.- Parameters:
program- the value for theprogramrecord componentspace- the value for thespacerecord componentisNative- the value for theisNativerecord componentmint- the value for themintrecord componentowner- the value for theownerrecord componentfreezeAuthority- the value for thefreezeAuthorityrecord componentmintAuthority- the value for themintAuthorityrecord componentisInitialized- the value for theisInitializedrecord componentstate- the value for thestaterecord componenttype- the value for thetyperecord componenttokenAmount- the value for thetokenAmountrecord componentaddresses- the value for theaddressesrecord component
-
-
Method Details
-
parse
-
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 '=='. -
program
public software.sava.core.accounts.PublicKey program()Returns the value of theprogramrecord component.- Returns:
- the value of the
programrecord component
-
space
public int space()Returns the value of thespacerecord component.- Returns:
- the value of the
spacerecord component
-
isNative
public boolean isNative()Returns the value of theisNativerecord component.- Returns:
- the value of the
isNativerecord component
-
mint
public software.sava.core.accounts.PublicKey mint()Returns the value of themintrecord component.- Returns:
- the value of the
mintrecord component
-
owner
public software.sava.core.accounts.PublicKey owner()Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
freezeAuthority
public software.sava.core.accounts.PublicKey freezeAuthority()Returns the value of thefreezeAuthorityrecord component.- Returns:
- the value of the
freezeAuthorityrecord component
-
mintAuthority
public software.sava.core.accounts.PublicKey mintAuthority()Returns the value of themintAuthorityrecord component.- Returns:
- the value of the
mintAuthorityrecord component
-
isInitialized
Returns the value of theisInitializedrecord component.- Returns:
- the value of the
isInitializedrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
tokenAmount
Returns the value of thetokenAmountrecord component.- Returns:
- the value of the
tokenAmountrecord component
-
addresses
Returns the value of theaddressesrecord component.- Returns:
- the value of the
addressesrecord component
-