Package org.astonbitecode.j4rs.api
Class NativeInvocationBase
- java.lang.Object
-
- org.astonbitecode.j4rs.api.NativeInvocationBase
-
- Direct Known Subclasses:
EagerJsonInvocationImpl,JsonInvocationImpl
public class NativeInvocationBase extends Object
-
-
Constructor Summary
Constructors Constructor Description NativeInvocationBase()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> NativeInvocationcast(NativeInvocation from, String toClass)Casts a the object that is contained in a NativeInvocation to an object of class clazz.static <T> NativeInvocationcloneInstance(NativeInvocation from)Clones a NativeInvocation
-
-
-
Method Detail
-
cast
public static <T> NativeInvocation cast(NativeInvocation from, String toClass)
Casts a the object that is contained in a NativeInvocation to an object of class clazz.- Type Parameters:
T- Generically defined return type- Parameters:
from- TheNativeInvocationto cast.toClass- The class that the providedNativeInvocationshould be casted to- Returns:
- A
NativeInvocationinstance containing the result of the cast.
-
cloneInstance
public static <T> NativeInvocation cloneInstance(NativeInvocation from)
Clones a NativeInvocation- Type Parameters:
T- Generically defined return type- Parameters:
from- The object to clone.- Returns:
- a
NativeInvocationinstance.
-
-