Class JNetHelper
Helper class of JNet for some specific operations
public sealed class JNetHelper : JVMBridgeBase<JNetHelper>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JNetHelper
- Implements
- Inherited Members
-
JVMBridgeBase<JNetHelper>.SExecuteWithSignature<TReturn>(IJavaType, string, string, params object[])JVMBridgeBase<JNetHelper>.SExecuteWithSignature<TNewClass, TReturn>(string, string, params object[])JVMBridgeBase<JNetHelper>.NewWithSignatureAndWrapsDirect<TNewClass>(string, string, params object[])
- Extension Methods
Constructors
JNetHelper()
public JNetHelper()
JNetHelper(IJVMBridgeBaseInitializer)
Initializer used internally
public JNetHelper(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializerAn instance of IJVMBridgeBaseInitializer
Remarks
Shall be available in any class inherited from JVMBridgeBase
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Methods
Class<TClass>()
Retrieve the BridgeClassName of TClass
public static Class<TClass> Class<TClass>() where TClass : IJVMBridgeBase
Returns
- Class<TClass>
The BridgeClassName
Type Parameters
TClassA type implementing IJVMBridgeBase
ListFrom(ByteBuffer)
Executes the https://docs.oracle.com/en%2Fjava%2Fjavase%2F11%2Fdocs%2Fapi%2F%2F/java.base/java/util/Arrays.html#asList(T...) using a ByteBuffer in arg0
public static List<Byte> ListFrom(ByteBuffer arg0)
Parameters
arg0ByteBufferByteBuffer to be used
Returns
- List<Byte>
A List can be used as input of ArrayList<E>
ListFrom(CharBuffer)
Executes the https://docs.oracle.com/en%2Fjava%2Fjavase%2F11%2Fdocs%2Fapi%2F%2F/java.base/java/util/Arrays.html#asList(T...) using a CharBuffer in arg0
public static List<Character> ListFrom(CharBuffer arg0)
Parameters
arg0CharBufferCharBuffer to be used
Returns
- List<Character>
A List can be used as input of ArrayList<E>
ListFrom(DoubleBuffer)
Executes the https://docs.oracle.com/en%2Fjava%2Fjavase%2F11%2Fdocs%2Fapi%2F%2F/java.base/java/util/Arrays.html#asList(T...) using a DoubleBuffer in arg0
public static List<Double> ListFrom(DoubleBuffer arg0)
Parameters
arg0DoubleBufferDoubleBuffer to be used
Returns
- List<Double>
A List can be used as input of ArrayList<E>
ListFrom(FloatBuffer)
Executes the https://docs.oracle.com/en%2Fjava%2Fjavase%2F11%2Fdocs%2Fapi%2F%2F/java.base/java/util/Arrays.html#asList(T...) using a FloatBuffer in arg0
public static List<Float> ListFrom(FloatBuffer arg0)
Parameters
arg0FloatBufferFloatBuffer to be used
Returns
- List<Float>
A List can be used as input of ArrayList<E>
ListFrom(IntBuffer)
Executes the https://docs.oracle.com/en%2Fjava%2Fjavase%2F11%2Fdocs%2Fapi%2F%2F/java.base/java/util/Arrays.html#asList(T...) using a IntBuffer in arg0
public static List<Integer> ListFrom(IntBuffer arg0)
Parameters
Returns
- List<Integer>
A List can be used as input of ArrayList<E>
ListFrom(LongBuffer)
Executes the https://docs.oracle.com/en%2Fjava%2Fjavase%2F11%2Fdocs%2Fapi%2F%2F/java.base/java/util/Arrays.html#asList(T...) using a LongBuffer in arg0
public static List<Long> ListFrom(LongBuffer arg0)
Parameters
arg0LongBufferLongBuffer to be used
Returns
- List<Long>
A List can be used as input of ArrayList<E>
ListFrom(ShortBuffer)
Executes the https://docs.oracle.com/en%2Fjava%2Fjavase%2F11%2Fdocs%2Fapi%2F%2F/java.base/java/util/Arrays.html#asList(T...) using a ShortBuffer in arg0
public static List<Short> ListFrom(ShortBuffer arg0)
Parameters
arg0ShortBufferShortBuffer to be used
Returns
- List<Short>
A List can be used as input of ArrayList<E>
ListFrom<T>(T[], bool)
Executes the https://docs.oracle.com/en%2Fjava%2Fjavase%2F11%2Fdocs%2Fapi%2F%2F/java.base/java/util/Arrays.html#asList(T...) over primitive types
public static List ListFrom<T>(T[] data, bool buffered = false)
Parameters
dataT[]Array of primitive types
bufferedboolSet to true to use ByteBuffer, IntBuffer, DoubleBuffer and so on to transfer data to JVM
Returns
- List
A List can be used as input of ArrayList<E>
Type Parameters
T