Package de.intarsys.nativec.type
Class NativeNumber
java.lang.Object
de.intarsys.nativec.type.NativeObject
de.intarsys.nativec.type.NativeSimple
de.intarsys.nativec.type.NativeNumber
- All Implemented Interfaces:
INativeObject
- Direct Known Subclasses:
NativeByte,NativeInt,NativeLong,NativeLongLP64,NativeShort
An abstract superclass for the implementation of number
NativeSimple.-
Field Summary
Fields inherited from class de.intarsys.nativec.type.NativeObject
DEBUG, handle, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_PTR, SIZE_SHORT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate a wrapperprotectedNativeNumber(INativeHandle handle) -
Method Summary
Modifier and TypeMethodDescriptionabstract byteThis as a java primitive byte value.abstract intintValue()This as a java primitive int value.abstract longThis as a java primitive long value.abstract shortThis as a java primitive short value.Methods inherited from class de.intarsys.nativec.type.NativeSimple
getByteCountMethods inherited from class de.intarsys.nativec.type.NativeObject
allocate, cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getNativeType, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString, toNestedStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.intarsys.nativec.type.INativeObject
getValue, setValue
-
Constructor Details
-
NativeNumber
protected NativeNumber()Create a wrapper -
NativeNumber
-
-
Method Details
-
byteValue
public abstract byte byteValue()This as a java primitive byte value.- Returns:
- This as a java primitive byte value.
-
intValue
public abstract int intValue()This as a java primitive int value.- Returns:
- This as a java primitive int value.
-
longValue
public abstract long longValue()This as a java primitive long value.- Returns:
- This as a java primitive long value.
-
shortValue
public abstract short shortValue()This as a java primitive short value.- Returns:
- This as a java primitive short value.
-