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) variable

    This 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.


      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait



    • Constructor Detail



      • NUInt

        public NUInt(java.lang.Long longValue)
        Creates new instance of NUInt class wrapping Long value provided as argument.

        This value will be converted on .NET side to uint.

        Parameters:
        longValue – Long value to be wrapped and converted to uint on .NET side



    • Method Detail



      • getLongValue

        public java.lang.Long getLongValue()
        Returns wrapped Long value.
        Returns:
        Wrapped long value