public abstract class Payload extends Object
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static Payload |
fromBytes(ByteBuffer source) |
byte[] |
getBytes()
Get the serialized payload.
|
protected abstract byte[] |
getPayloadBytes()
This must return the payload only.
|
TransactionType |
getType()
Type of the payload (account transaction).
|
int |
hashCode() |
String |
toString() |
public final byte[] getBytes()
TransactionTypeprotected abstract byte[] getPayloadBytes()
getBytes()public static Payload fromBytes(ByteBuffer source)
source - a buffer to read payload bytes from, including TransactionType byte.PayloadUnsupportedOperationException - if payload can't be read.
Not all payload types can be read.
Use RawPayload for unsupported types.protected boolean canEqual(Object other)
public TransactionType getType()
Copyright © 2026. All rights reserved.