PAYLOAD
- META
- public class MetaPayload<PAYLOAD,META> extends Object
Constructor and Description |
---|
MetaPayload(PAYLOAD payload,
META meta) |
Modifier and Type | Method and Description |
---|---|
static <A,B> MetaPayload<A,B> |
create(A a,
B b)
Create a new
MetaPayload created from the given payload and
metadata |
META |
getMeta() |
PAYLOAD |
getPayload() |
public MetaPayload(PAYLOAD payload, META meta)
payload
- meta
- public PAYLOAD getPayload()
public static <A,B> MetaPayload<A,B> create(A a, B b)
MetaPayload
created from the given payload and
metadataa
- the payloadb
- the metadataMetaPayload
created from the given payload and
metadata