public abstract class NativeType<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static com.fasterxml.jackson.databind.JavaType[] |
NO_TYPE_PARAMS |
static NativeType<Void> |
VOID
A
NativeType representation for `void`. |
| Modifier | Constructor and Description |
|---|---|
protected |
NativeType(com.fasterxml.jackson.databind.JavaType javaType) |
| Modifier and Type | Method and Description |
|---|---|
static <T> NativeType<T> |
forClass(Class<T> simpleType)
|
static <T> NativeType<T> |
forType(Type type)
Creates a
NativeType for the given Java type description. |
static <T> NativeType<List<T>> |
listOf(NativeType<T> elementType)
|
static <T> NativeType<Map<String,T>> |
mapOf(NativeType<T> elementType)
|
protected static final com.fasterxml.jackson.databind.JavaType[] NO_TYPE_PARAMS
public static final NativeType<Void> VOID
NativeType representation for `void`.protected NativeType(com.fasterxml.jackson.databind.JavaType javaType)
public static <T> NativeType<T> forClass(Class<T> simpleType)
T - the static type of simpleType.simpleType - the Java class to be represented.NativeType instance.IllegalArgumentException - if a List or Map subclass is passed as an argument.public static <T> NativeType<List<T>> listOf(NativeType<T> elementType)
T - the static type of the elements in the List.elementType - the type of elements in the List.NativeType instance.public static <T> NativeType<Map<String,T>> mapOf(NativeType<T> elementType)
T - the static type of the values in the Map.elementType - the type of values in the Map.NativeType instance.public static <T> NativeType<T> forType(Type type)
NativeType for the given Java type description. This particular API is unsafe and should not be
used if any of the other APIs can be.T - the static type of the represented type. This operation is not checked, leaving the caller responsible
for ensuring the correct type is specified.type - the Type to be represented. It can be any type, including a Class reference, however
when a Class instance is available, the caller should use forClass(Class),
listOf(NativeType) and mapOf(NativeType) appropriately instead, as this operation
is not checked at runtime.NativeType instance.Copyright © 2020 Amazon Web Services. All rights reserved.