| Package | Description |
|---|---|
| com.tomasteubner.common.json.mapper |
This package contains some standard mappers.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> RawMapper.FromJSON<T> |
RawMapper.fromJSONAnnotated(Class<T> clazz,
Method method)
Create mapping from JSON to object from a @FromJSON annotated method.
|
static <T> RawMapper.FromJSON<T> |
RawMapper.fromJSONConstructor(Class<T> clazz,
Constructor<T> constructor)
Create mapping from JSON to object by a constructor.
|
| Constructor and Description |
|---|
RawMapper(Class<T> type,
RawMapper.ToJSON<T> toJSON,
RawMapper.FromJSON<T> fromJSON)
Create a new mapper for a @JSONRaw annotated class.
|
Copyright © 2014–2015 Tomas Teubner. All rights reserved.