APIs for Java Developers
Go to APIs for .NET Developers (coming soon)com.javonet.api.types
Class NUInt
- java.lang.Object
-
- com.javonet.api.types.NUInt
-
public class NUInt extends java.lang.Object
A class that represents .NET System.UInt32 (uint) variableThis class should be used when target method, field or property expects uint value.
Because JAVA does not provide unsigned integral variables NUInt wrapping class should be used to instruct Javonet
to convert particular JAVA Long value into UInt on .NET side.
Notice that UInt value is beyond JAVA Integer range therefore JAVA Long variable is used.Usage
.NET method expecting uint argument.
MethodA(uint arg1)
Calling MethodA from JAVA:
Long l = 1; obj.invoke("MethodA",new NUInt(l));
- Version:
- 1.3
-
Constructor Summary
Constructors Constructor and Description NUInt(java.lang.Long longValue)
Creates new instance of NUInt class wrapping Long value provided as argument.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Long
getLongValue()
Returns wrapped Long value.