j2native |
AnsiString |
Argument |
ArrayArgument |
ArrayType |
Bool |
Callback |
Char |
Const |
DelegatedArgument |
DoubleFloat |
FloatArgument |
FloatType |
Function |
FunctionExecutionException |
FunctionNotFoundException |
IllegalMemoryAccessException |
Int |
Int16 |
Int32 |
Int64 |
Int8 |
IntegerArgument |
IntegerType |
J2NativeContext |
Library |
LibraryLoader |
LibraryNotFoundException |
MemoryException |
NumericArgument |
NumericType |
OutOnly |
Pointer |
Pointer.Const |
Pointer.OutOnly |
Pointer.Void |
PointerArgument |
PointerType |
SimpleFloat |
StringType |
StructuralArgument |
Structure |
TypedPointer |
UInt |
UInt16 |
UInt32 |
UInt8 |
Union |
WideChar |
WideString |
ZeroTerminatedString |
| |
com.smardec.j2native
Interface NumericType
- All Known Subinterfaces:
- FloatType, IntegerType
- All Known Implementing Classes:
- FloatArgument, Int, IntegerArgument, NumericArgument, UInt
- public interface NumericType
Common interface for all numeric types
Method Summary |
boolean |
booleanValue()
Returns the value of the specified number as a boolean . |
byte |
byteValue()
Returns the value of the specified number as a byte . |
double |
doubleValue()
Returns the value of the specified number as a double . |
float |
floatValue()
Returns the value of the specified number as a float . |
int |
intValue()
Returns the value of the specified number as an int . |
long |
longValue()
Returns the value of the specified number as a long . |
short |
shortValue()
Returns the value of the specified number as a short . |
longValue
public long longValue()
- Returns the value of the specified number as a
long .
This may involve rounding or truncation.
- Returns:
- the numeric value represented by this object after conversion
to type
long .
intValue
public int intValue()
- Returns the value of the specified number as an
int .
This may involve rounding or truncation.
- Returns:
- the numeric value represented by this object after conversion
to type
int .
shortValue
public short shortValue()
- Returns the value of the specified number as a
short .
This may involve rounding or truncation.
- Returns:
- the numeric value represented by this object after conversion
to type
short .
byteValue
public byte byteValue()
- Returns the value of the specified number as a
byte .
This may involve rounding or truncation.
- Returns:
- the numeric value represented by this object after conversion
to type
byte .
booleanValue
public boolean booleanValue()
- Returns the value of the specified number as a
boolean .
This may involve rounding or truncation.
- Returns:
- the numeric value represented by this object after conversion
to type
boolean .
floatValue
public float floatValue()
- Returns the value of the specified number as a
float .
This may involve rounding.
- Returns:
- the numeric value represented by this object after conversion
to type
float .
doubleValue
public double doubleValue()
- Returns the value of the specified number as a
double .
This may involve rounding.
- Returns:
- the numeric value represented by this object after conversion
to type
double .
|
|
|