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
ConstructorsModifierConstructorDescriptionprotected
Create a wrapperprotected
NativeNumber
(INativeHandle handle) -
Method Summary
Modifier and TypeMethodDescriptionabstract byte
This as a java primitive byte value.abstract int
intValue()
This as a java primitive int value.abstract long
This as a java primitive long value.abstract short
This as a java primitive short value.Methods inherited from class de.intarsys.nativec.type.NativeSimple
getByteCount
Methods 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, toNestedString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.
-