Home about services products contact login
   com.smardec

J2Native

  j2native
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.

Method Detail
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.
Home about services products contact login