public interface NativeMapped
Function
and Structure
will use this interface to determine
how to map a given Java object into a native type.Implementations of this interface must provide a no-args constructor.
See ToNativeConverter
for a list of allowable native types.
Modifier and Type | Method and Description |
---|---|
Object |
fromNative(Object nativeValue,
FromNativeContext context)
Convert the given native object into its Java representation using
the given context.
|
Class<?> |
nativeType()
Indicate the native type used by this converter.
|
Object |
toNative()
Convert this object into a supported native type.
|
Object fromNative(Object nativeValue, FromNativeContext context)
nativeValue
- Java representation of the native type to be converted.context
- Context in which the conversion is taking place.Object toNative()
Class<?> nativeType()