java.lang.Object
java.lang.Record
software.sava.core.accounts.token.Mint
- All Implemented Interfaces:
Serializable
public record Mint(PublicKey address, PublicKey mintAuthority, long supply, int decimals, boolean initialized, PublicKey freezeAuthority)
extends Record
implements Serializable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.intdecimals()Returns the value of thedecimalsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefreezeAuthorityrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinitializedrecord component.intl()Returns the value of themintAuthorityrecord component.static Mintlongsupply()Returns the value of thesupplyrecord component.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
-
Field Details
-
BYTES
public static final int BYTES- See Also:
-
FACTORY
-
-
Constructor Details
-
Mint
public Mint(PublicKey address, PublicKey mintAuthority, long supply, int decimals, boolean initialized, PublicKey freezeAuthority) Creates an instance of aMintrecord class.- Parameters:
address- the value for theaddressrecord componentmintAuthority- the value for themintAuthorityrecord componentsupply- the value for thesupplyrecord componentdecimals- the value for thedecimalsrecord componentinitialized- the value for theinitializedrecord componentfreezeAuthority- the value for thefreezeAuthorityrecord component
-
-
Method Details
-
read
-
write
public int write(byte[] data, int offset) - Specified by:
writein interfaceSerializable
-
l
public int l()- Specified by:
lin 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 '=='. -
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
mintAuthority
Returns the value of themintAuthorityrecord component.- Returns:
- the value of the
mintAuthorityrecord component
-
supply
public long supply()Returns the value of thesupplyrecord component.- Returns:
- the value of the
supplyrecord component
-
decimals
public int decimals()Returns the value of thedecimalsrecord component.- Returns:
- the value of the
decimalsrecord component
-
initialized
public boolean initialized()Returns the value of theinitializedrecord component.- Returns:
- the value of the
initializedrecord component
-
freezeAuthority
Returns the value of thefreezeAuthorityrecord component.- Returns:
- the value of the
freezeAuthorityrecord component
-