org.jinterop.dcom.core
Class JIUnsigned

java.lang.Object
  extended by org.jinterop.dcom.core.JIUnsigned

public final class JIUnsigned
extends java.lang.Object

Representation of C++ "Unsigned Types".

Since:
1.15

Constructor Summary
JIUnsigned()
           
 
Method Summary
static IJIUnsigned getUnsigned(java.lang.Number value, int flag)
          Returns an implementation for each of the unsigned type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JIUnsigned

public JIUnsigned()
Method Detail

getUnsigned

public static IJIUnsigned getUnsigned(java.lang.Number value,
                                      int flag)

Returns an implementation for each of the unsigned type. Only 3 types are supported at present Byte, Short, Integer and since Java has no support for unsigned types, please send a Short for a Byte, Integer for a Short and Long for an Integer. This is to accomodate the entire spectrum for the unsigned type and prevent the rollover problem.

Parameters:
value - Short, Integer, Long only
flag - refer JIFlags documentation
Returns: