Record Class VoteAuthorizeWithSeedArgs
java.lang.Object
java.lang.Record
software.sava.solana.programs.vote.VoteAuthorizeWithSeedArgs
- All Implemented Interfaces:
software.sava.core.serial.Serializable
public record VoteAuthorizeWithSeedArgs(VoteAuthorize authorizationType, software.sava.core.accounts.PublicKey currentAuthorityDerivedKeyOwner, byte[] currentAuthorityDerivedKeySeed, software.sava.core.accounts.PublicKey newAuthority)
extends Record
implements software.sava.core.serial.Serializable
-
Constructor Summary
ConstructorsConstructorDescriptionVoteAuthorizeWithSeedArgs(VoteAuthorize authorizationType, software.sava.core.accounts.PublicKey currentAuthorityDerivedKeyOwner, byte[] currentAuthorityDerivedKeySeed, software.sava.core.accounts.PublicKey newAuthority) Creates an instance of aVoteAuthorizeWithSeedArgsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorizationTyperecord component.software.sava.core.accounts.PublicKeyReturns the value of thecurrentAuthorityDerivedKeyOwnerrecord component.byte[]Returns the value of thecurrentAuthorityDerivedKeySeedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intl()software.sava.core.accounts.PublicKeyReturns the value of thenewAuthorityrecord component.static VoteAuthorizeWithSeedArgsread(byte[] data, int offset) final StringtoString()Returns a string representation of this record class.intwrite(byte[] data, int offset) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.sava.core.serial.Serializable
reusable, write, write
-
Constructor Details
-
VoteAuthorizeWithSeedArgs
public VoteAuthorizeWithSeedArgs(VoteAuthorize authorizationType, software.sava.core.accounts.PublicKey currentAuthorityDerivedKeyOwner, byte[] currentAuthorityDerivedKeySeed, software.sava.core.accounts.PublicKey newAuthority) Creates an instance of aVoteAuthorizeWithSeedArgsrecord class.- Parameters:
authorizationType- the value for theauthorizationTyperecord componentcurrentAuthorityDerivedKeyOwner- the value for thecurrentAuthorityDerivedKeyOwnerrecord componentcurrentAuthorityDerivedKeySeed- the value for thecurrentAuthorityDerivedKeySeedrecord componentnewAuthority- the value for thenewAuthorityrecord component
-
-
Method Details
-
read
-
write
public int write(byte[] data, int offset) - Specified by:
writein interfacesoftware.sava.core.serial.Serializable
-
l
public int l()- Specified by:
lin interfacesoftware.sava.core.serial.Serializable
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
authorizationType
Returns the value of theauthorizationTyperecord component.- Returns:
- the value of the
authorizationTyperecord component
-
currentAuthorityDerivedKeyOwner
public software.sava.core.accounts.PublicKey currentAuthorityDerivedKeyOwner()Returns the value of thecurrentAuthorityDerivedKeyOwnerrecord component.- Returns:
- the value of the
currentAuthorityDerivedKeyOwnerrecord component
-
currentAuthorityDerivedKeySeed
public byte[] currentAuthorityDerivedKeySeed()Returns the value of thecurrentAuthorityDerivedKeySeedrecord component.- Returns:
- the value of the
currentAuthorityDerivedKeySeedrecord component
-
newAuthority
public software.sava.core.accounts.PublicKey newAuthority()Returns the value of thenewAuthorityrecord component.- Returns:
- the value of the
newAuthorityrecord component
-