Class Payload<T> (3.17.2)

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

Name Description
T

Methods

equals(Object obj)

public final boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getData()

public T getData()

Returns the log entry payload's data.

Returns
Type Description
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
Type Description
Payload.Type

hashCode()

public final int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides