public class SimpleTypeJsonMarshallers extends Object
Modifier and Type | Field and Description |
---|---|
static JsonMarshaller<BigDecimal> |
BIG_DECIMAL |
static JsonMarshaller<Boolean> |
BOOLEAN |
static JsonMarshaller<ByteBuffer> |
BYTE_BUFFER |
static JsonMarshaller<Date> |
DATE |
static JsonMarshaller<Double> |
DOUBLE |
static JsonMarshaller<Float> |
FLOAT |
static JsonMarshaller<Integer> |
INTEGER |
static JsonMarshaller<List> |
LIST |
static JsonMarshaller<Long> |
LONG |
static JsonMarshaller<Map> |
MAP
Marshalls a Map as a JSON object where each key becomes a field.
|
static JsonMarshaller<Void> |
NULL |
static JsonMarshaller<String> |
STRING |
static JsonMarshaller<StructuredPojo> |
STRUCTURED |
Constructor and Description |
---|
SimpleTypeJsonMarshallers() |
Modifier and Type | Method and Description |
---|---|
static <T> JsonMarshaller<T> |
adapt(StructuredJsonMarshaller<T> toAdapt)
Adapt a
StructuredJsonMarshaller to a JsonMarshaller . |
public static final JsonMarshaller<Void> NULL
public static final JsonMarshaller<String> STRING
public static final JsonMarshaller<Integer> INTEGER
public static final JsonMarshaller<Long> LONG
public static final JsonMarshaller<Float> FLOAT
public static final JsonMarshaller<BigDecimal> BIG_DECIMAL
public static final JsonMarshaller<Double> DOUBLE
public static final JsonMarshaller<Boolean> BOOLEAN
public static final JsonMarshaller<Date> DATE
public static final JsonMarshaller<ByteBuffer> BYTE_BUFFER
public static final JsonMarshaller<StructuredPojo> STRUCTURED
public static final JsonMarshaller<List> LIST
public static final JsonMarshaller<Map> MAP
public static <T> JsonMarshaller<T> adapt(StructuredJsonMarshaller<T> toAdapt)
StructuredJsonMarshaller
to a JsonMarshaller
. JsonMarshaller
has a lot of internal
stuff so we don't want to expose all that across module boundaries.T
- Type of thing being marshalled.toAdapt
- Marshaller to adapt.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.