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 |
---|---|
java.lang.Object |
fromNative(java.lang.Object nativeValue,
FromNativeContext context)
Convert the given native object into its Java representation using
the given context.
|
java.lang.Class<?> |
nativeType()
Indicate the native type used by this converter.
|
java.lang.Object |
toNative()
Convert this object into a supported native type.
|
java.lang.Object fromNative(java.lang.Object nativeValue, FromNativeContext context)
nativeValue
- Java representation of the native type to be converted.context
- Context in which the conversion is taking place.java.lang.Object toNative()
java.lang.Class<?> nativeType()