| JVMBridgeBaseWrapsTNewClass, TReturn, TConverter(IJavaObject) Method |
Wraps the javaObject with a new TNewClass class
Namespace: MASES.JCOBridge.C2JBridgeAssembly: C2JBridge (in C2JBridge.dll) Version: 2.5.21.241219-a6a144ea07c497c3a9a1be842408e852afb458be
Syntax public static TReturn Wraps<TNewClass, TReturn, TConverter>(
IJavaObject javaObject
)
where TNewClass : IJVMBridgeBase
where TConverter : new(), Object, IJVMBridgeBaseConvert<TNewClass, TReturn>
Public Shared Function Wraps(Of TNewClass As IJVMBridgeBase, TReturn, TConverter As {New, Object, IJVMBridgeBaseConvert(Of TNewClass, TReturn)}) (
javaObject As IJavaObject
) As TReturn
Parameters
- javaObject IJavaObject
- The BridgeInstance to be used
Type Parameters
- TNewClass
- The class implementing IJVMBridgeBase
- TReturn
- The return type: in some condition can be helpful to return a different TReturn
- TConverter
- The converter to be used to convert from TNewClass to TReturn
Return Value
TReturnAn newly initialized
TReturnSee Also