public class RetrofitType extends Object
| Constructor and Description |
|---|
RetrofitType(Type type)
Instantiates a new Retrofit type.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getType()
Gets type.
|
boolean |
isCollection()
Is collection boolean.
|
boolean |
isJSONAPIDocumentType()
Returns true if type used to instantiate this object was wrapped with
JSONAPIDocument. |
boolean |
isValid()
Is valid boolean.
|
public RetrofitType(Type type)
type - the typepublic boolean isJSONAPIDocumentType()
JSONAPIDocument.Booleanpublic Class<?> getType()
public boolean isCollection()
true if type was ParameterizedType else falsepublic boolean isValid()
true if type is valid, else falseCopyright © 2017. All rights reserved.