public class TokenId extends Object
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static TokenId |
from(byte[] bytes)
Create a token from the provided byte array
|
static TokenId |
from(UInt16 value)
Create a token id from the
UInt16 in little endian |
static TokenId |
from(UInt32 value)
Create a token id from the
UInt32 in little endian |
static TokenId |
from(UInt64 value)
Create a token id from the
UInt64 in little endian |
byte[] |
getBytes() |
int |
getSize()
Get the size of the token (in number of bytes)
|
int |
hashCode() |
static TokenId |
min()
Construct a minimum token id i.e., the empty one.
|
String |
toString() |
public static TokenId min()
public int getSize()
public static TokenId from(byte[] bytes)
bytes
- the token id in raw bytespublic static TokenId from(UInt16 value)
UInt16
in little endianvalue
- the token idpublic static TokenId from(UInt32 value)
UInt32
in little endianvalue
- the token idpublic static TokenId from(UInt64 value)
UInt64
in little endianvalue
- the token idprotected boolean canEqual(Object other)
public byte[] getBytes()
Copyright © 2025. All rights reserved.