Module software.sava.core
Record Class TokenMetadata
java.lang.Object
java.lang.Record
software.sava.core.accounts.token.extensions.TokenMetadata
- All Implemented Interfaces:
MintTokenExtension,TokenExtension,Serializable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalMetadatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intl()mint()Returns the value of themintrecord component.name()Returns the value of thenamerecord component.static TokenMetadataread(byte[] data, int offset) symbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdateAuthorityrecord component.uri()Returns the value of theurirecord 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
-
Constructor Details
-
TokenMetadata
public TokenMetadata(PublicKey updateAuthority, PublicKey mint, String name, String symbol, String uri, Map<String, String> additionalMetadata) Creates an instance of aTokenMetadatarecord class.- Parameters:
updateAuthority- the value for theupdateAuthorityrecord componentmint- the value for themintrecord componentname- the value for thenamerecord componentsymbol- the value for thesymbolrecord componenturi- the value for theurirecord componentadditionalMetadata- the value for theadditionalMetadatarecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
updateAuthority
Returns the value of theupdateAuthorityrecord component.- Returns:
- the value of the
updateAuthorityrecord component
-
mint
Returns the value of themintrecord component.- Returns:
- the value of the
mintrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
symbol
Returns the value of thesymbolrecord component.- Returns:
- the value of the
symbolrecord component
-
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-
additionalMetadata
Returns the value of theadditionalMetadatarecord component.- Returns:
- the value of the
additionalMetadatarecord component
-