public abstract class Mech2JSONResult<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Mech2JSONResult.Mech2JSONResultClass<T> |
static class |
Mech2JSONResult.Mech2JSONResultTypeReference<T> |
| Modifier and Type | Method and Description |
|---|---|
Mech2Result |
getResult() |
boolean |
isSuccess() |
static <T> Mech2JSONResult<T> |
of(Mech2Result result,
Class<T> klass) |
static <T> Mech2JSONResult<T> |
of(Mech2Result result,
com.fasterxml.jackson.core.type.TypeReference<T> klass) |
Mech2JSONResult<T> |
orDie() |
abstract T |
parseJSON() |
public static <T> Mech2JSONResult<T> of(Mech2Result result, com.fasterxml.jackson.core.type.TypeReference<T> klass)
public static <T> Mech2JSONResult<T> of(Mech2Result result, Class<T> klass)
public Mech2Result getResult()
public Mech2JSONResult<T> orDie() throws Mech2FailException
Mech2FailExceptionpublic boolean isSuccess()
public abstract T parseJSON() throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionCopyright © 2014. All rights reserved.