Module software.sava.core
Record Class PausableConfig
java.lang.Object
java.lang.Record
software.sava.core.accounts.token.extensions.PausableConfig
- All Implemented Interfaces:
MintTokenExtension,TokenExtension,Serializable
public record PausableConfig(PublicKey authority, boolean paused)
extends Record
implements MintTokenExtension
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPausableConfig(PublicKey authority, boolean paused) Creates an instance of aPausableConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intl()booleanpaused()Returns the value of thepausedrecord component.static PausableConfigread(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.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
-
PausableConfig
Creates an instance of aPausableConfigrecord class.- Parameters:
authority- the value for theauthorityrecord componentpaused- the value for thepausedrecord 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 '=='. -
authority
Returns the value of theauthorityrecord component.- Returns:
- the value of the
authorityrecord component
-
paused
public boolean paused()Returns the value of thepausedrecord component.- Returns:
- the value of the
pausedrecord component
-