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
public abstract class NativeNumber extends NativeSimple
An abstract superclass for the implementation of numberNativeSimple
.
-
-
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
Constructors Modifier Constructor Description protected
NativeNumber()
Create a wrapperprotected
NativeNumber(INativeHandle handle)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract byte
byteValue()
This as a java primitive byte value.abstract int
intValue()
This as a java primitive int value.abstract long
longValue()
This as a java primitive long value.abstract short
shortValue()
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 Detail
-
NativeNumber
protected NativeNumber()
Create a wrapper
-
NativeNumber
protected NativeNumber(INativeHandle handle)
-
-
Method Detail
-
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.
-
-