T - Actual response typepublic interface ResponseType<T>
Supports parameterized types, which can be declared using of(Class, Class).
RestClient| Modifier and Type | Method and Description |
|---|---|
Type |
getType()
Get the actual response type
|
boolean |
isSimpleType()
Get whether is a simple or parameterized type
|
static <T> ResponseType<T> |
of(Class<?> type,
Class<?> rawType)
Build a ResponseType using given a parameterized type.
|
static <T> ResponseType<T> |
of(Class<T> type)
Build a ResponseType using given simple type.
|
Type getType()
boolean isSimpleType()
true if simple type, false if parameterized typestatic <T> ResponseType<T> of(Class<T> type)
T - Response typetype - Actual response typestatic <T> ResponseType<T> of(Class<?> type, Class<?> rawType)
T - Response typetype - Type argumentrawType - Raw typeCopyright © 2019 The Holon Platform. All rights reserved.