P
- type of payloadpublic class TypedResult<P> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TypedResult.ResultType
Result types.
|
Modifier and Type | Method and Description |
---|---|
static <T> TypedResult<T> |
empty() |
static <T> TypedResult<T> |
endOfStream() |
boolean |
equals(Object o) |
P |
getPayload() |
TypedResult.ResultType |
getType() |
int |
hashCode() |
static <T> TypedResult<T> |
payload(T payload) |
void |
setPayload(P payload) |
void |
setType(TypedResult.ResultType type) |
String |
toString() |
public void setType(TypedResult.ResultType type)
public void setPayload(P payload)
public TypedResult.ResultType getType()
public P getPayload()
public static <T> TypedResult<T> empty()
public static <T> TypedResult<T> payload(T payload)
public static <T> TypedResult<T> endOfStream()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.