public class ContractResultImpl extends java.lang.Object implements ContractResult
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
protected static com.fasterxml.jackson.databind.ObjectReader |
reader |
protected BytesValue |
result |
EMPTY
Constructor and Description |
---|
ContractResultImpl() |
Modifier and Type | Method and Description |
---|---|
<T> T |
bind(java.lang.Class<T> clazz)
Bind contract result to class.
|
BytesValue |
getResultInRawBytes()
Use
ContractResult.inBytesValue() instead. |
BytesValue |
inBytesValue()
Get contract result in a bytes value.
|
java.lang.String |
toString() |
protected static final com.fasterxml.jackson.databind.ObjectReader reader
protected final org.slf4j.Logger logger
protected final BytesValue result
public <T> T bind(java.lang.Class<T> clazz) throws java.io.IOException
ContractResult
bind
in interface ContractResult
T
- return typeclazz
- class to bindjava.io.IOException
- when binding error occurredpublic BytesValue getResultInRawBytes()
ContractResult
ContractResult.inBytesValue()
instead.getResultInRawBytes
in interface ContractResult
public BytesValue inBytesValue()
ContractResult
inBytesValue
in interface ContractResult
public java.lang.String toString()
toString
in class java.lang.Object