public class NativeMappedConverter extends Object implements TypeConverter
NativeMapped
.Constructor and Description |
---|
NativeMappedConverter(Class<?> type) |
Modifier and Type | Method and Description |
---|---|
NativeMapped |
defaultValue() |
Object |
fromNative(Object nativeValue,
FromNativeContext context)
Convert the given native object into its Java representation using
the given context.
|
static NativeMappedConverter |
getInstance(Class<?> cls) |
Class<?> |
nativeType()
Indicate the native type used by this converter.
|
Object |
toNative(Object value,
ToNativeContext context)
Convert a Java type to an appropriate native type.
|
public NativeMappedConverter(Class<?> type)
public static NativeMappedConverter getInstance(Class<?> cls)
public NativeMapped defaultValue()
public Object fromNative(Object nativeValue, FromNativeContext context)
FromNativeConverter
fromNative
in interface FromNativeConverter
public Class<?> nativeType()
FromNativeConverter
nativeType
in interface FromNativeConverter
nativeType
in interface ToNativeConverter
public Object toNative(Object value, ToNativeContext context)
ToNativeConverter
Pointer
NativeLong
Structure
WString
Buffer
(unsupported in direct mode)
toNative
in interface ToNativeConverter