Module software.sava.core
Record Class TransferFeeConfig
java.lang.Object
java.lang.Record
software.sava.core.accounts.token.extensions.TransferFeeConfig
- All Implemented Interfaces:
MintTokenExtension,TokenExtension,Serializable
public record TransferFeeConfig(PublicKey transferFeeConfigAuthority, PublicKey withdrawWithheldAuthority, long withheldAmount, TransferFee olderTransferFee, TransferFee newerTransferFee)
extends Record
implements MintTokenExtension
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTransferFeeConfig(PublicKey transferFeeConfigAuthority, PublicKey withdrawWithheldAuthority, long withheldAmount, TransferFee olderTransferFee, TransferFee newerTransferFee) Creates an instance of aTransferFeeConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intl()Returns the value of thenewerTransferFeerecord component.Returns the value of theolderTransferFeerecord component.static TransferFeeConfigread(byte[] data, int offset) final StringtoString()Returns a string representation of this record class.Returns the value of thetransferFeeConfigAuthorityrecord component.Returns the value of thewithdrawWithheldAuthorityrecord component.longReturns the value of thewithheldAmountrecord component.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.accounts.token.extensions.MintTokenExtension
ordinalMethods inherited from interface software.sava.core.serial.Serializable
reusable, write, write
-
Field Details
-
BYTES
public static final int BYTES- See Also:
-
-
Constructor Details
-
TransferFeeConfig
public TransferFeeConfig(PublicKey transferFeeConfigAuthority, PublicKey withdrawWithheldAuthority, long withheldAmount, TransferFee olderTransferFee, TransferFee newerTransferFee) Creates an instance of aTransferFeeConfigrecord class.- Parameters:
transferFeeConfigAuthority- the value for thetransferFeeConfigAuthorityrecord componentwithdrawWithheldAuthority- the value for thewithdrawWithheldAuthorityrecord componentwithheldAmount- the value for thewithheldAmountrecord componentolderTransferFee- the value for theolderTransferFeerecord componentnewerTransferFee- the value for thenewerTransferFeerecord component
-
-
Method Details
-
read
-
extensionType
- Specified by:
extensionTypein interfaceTokenExtension
-
l
public int l()- Specified by:
lin interfaceSerializable
-
write
public int write(byte[] data, int offset) - Specified by:
writein interfaceSerializable
-
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 '=='. -
transferFeeConfigAuthority
Returns the value of thetransferFeeConfigAuthorityrecord component.- Returns:
- the value of the
transferFeeConfigAuthorityrecord component
-
withdrawWithheldAuthority
Returns the value of thewithdrawWithheldAuthorityrecord component.- Returns:
- the value of the
withdrawWithheldAuthorityrecord component
-
withheldAmount
public long withheldAmount()Returns the value of thewithheldAmountrecord component.- Returns:
- the value of the
withheldAmountrecord component
-
olderTransferFee
Returns the value of theolderTransferFeerecord component.- Returns:
- the value of the
olderTransferFeerecord component
-
newerTransferFee
Returns the value of thenewerTransferFeerecord component.- Returns:
- the value of the
newerTransferFeerecord component
-