Class Payload<T> (3.15.17)

public abstract class Payload<T> implements Serializable

A base class for log entry payloads. See Also: Log Entries and Logs

Inheritance

Object > Payload<T>

Implements

Serializable

Type Parameter

NameDescription
T

Methods

equals(Object obj)

public final boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getData()

public T getData()

Returns the log entry payload's data.

Returns
TypeDescription
T

getType()

public Payload.Type getType()

Returns the payload type. Payload can be an UTF-8 string (Type#STRING), a JSON object (Type#JSON) or a protobuf object (Type#PROTO).

Returns
TypeDescription
Payload.Type

hashCode()

public final int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides