Data Request Broker
2-3-release

fr.gael.drb.value
Interface Numeric

All Superinterfaces:
Arithmetic, Comparison, DrbItem, Logic, Sumable, Value
All Known Implementing Classes:
BinaryInteger, Byte, Decimal, Double, Float, Int, Integer, Long, Short, UnsignedByte, UnsignedInt, UnsignedLong, UnsignedShort

public interface Numeric
extends Value, Arithmetic, Comparison, Logic

Standard numeric values : from boolean to double. All operators are supported : arithmetic, comparison and logic.


Field Summary
 
Fields inherited from interface fr.gael.drb.value.Value
ARRAY_ID, BINARY_ID, BINARY_INTEGER_ID, BOOLEAN_ID, BYTE_ID, DATE_ID, DATE_TIME_ID, DAY_ID, DAY_TIME_DURATION_ID, DECIMAL_ID, DOUBLE_ID, DURATION_ID, FLOAT_ID, INT_ID, INTEGER_ID, LONG_ID, MONTH_DAY_ID, MONTH_ID, NULL_ID, NUMERIC_ID, OTHER_ID, SHORT_ID, STRING_ID, TIME_ID, UNKNOWN_ID, UNSIGNED_BYTE_ID, UNSIGNED_INT_ID, UNSIGNED_LONG_ID, UNSIGNED_SHORT_ID, YEAR_ID, YEAR_MONTH_DURATION_ID, YEAR_MONTH_ID
 
Fields inherited from interface fr.gael.drb.DrbItem
ATTRIBUTE_ITEM, NODE_ITEM, UNDEFINED_ITEM, VALUE_ITEM
 
Method Summary
 void assign(boolean v)
          Assign a boolean value.
 void assign(byte v)
          Assign a byte value.
 void assign(double v)
          Assign a double value.
 void assign(float v)
          Assign a float value.
 void assign(int v)
          Assign an int value.
 void assign(long v)
          Assign a long value.
 void assign(short v)
          Assign short value.
 byte byteValue()
          Returns this value as a byte (signed 8 bits).
 double doubleValue()
          Returns this value as a double (signed 64 bits IEEE 754).
 float floatValue()
          Returns this value as a float (signed 32 bits IEEE 754).
 int intValue()
          Returns this value as an integer (signed 32 bits).
 long longValue()
          Returns this value as a long integer (signed 64 bits).
 short shortValue()
          Returns this value as a short integer (signed 16 bits).
 
Methods inherited from interface fr.gael.drb.value.Value
assign, convertTo, getPriority, getType
 
Methods inherited from interface fr.gael.drb.DrbItem
getItemType, getName, getNamespaceURI, getValue, rename, setNamespaceURI, setValue
 
Methods inherited from interface fr.gael.drb.value.Arithmetic
divide, modulus, multiply, sub, unaryMinus
 
Methods inherited from interface fr.gael.drb.value.Sumable
add
 
Methods inherited from interface fr.gael.drb.value.Logic
and, booleanValue, or
 
Methods inherited from interface fr.gael.drb.value.Comparison
compareTo
 

Method Detail

byteValue

byte byteValue()
Returns this value as a byte (signed 8 bits). The conversion may result in a loss of precision.

Returns:
the numeric value represented by this object after conversion to type byte.

shortValue

short shortValue()
Returns this value as a short integer (signed 16 bits). The conversion may result in a loss of precision.

Returns:
the numeric value represented by this object after conversion to type short.

intValue

int intValue()
Returns this value as an integer (signed 32 bits). The conversion may result in a loss of precision.

Returns:
the numeric value represented by this object after conversion to type int.

longValue

long longValue()
Returns this value as a long integer (signed 64 bits). The conversion may result in a loss of precision.

Returns:
the numeric value represented by this object after conversion to type long.

floatValue

float floatValue()
Returns this value as a float (signed 32 bits IEEE 754). The conversion may result in a loss of precision.

Returns:
the numeric value represented by this object after conversion to type float.

doubleValue

double doubleValue()
Returns this value as a double (signed 64 bits IEEE 754). The conversion may result in a loss of precision.

Returns:
the numeric value represented by this object after conversion to type double.

assign

void assign(boolean v)
Assign a boolean value.

Parameters:
v - another value.

assign

void assign(byte v)
Assign a byte value.

Parameters:
v - another value. The conversion may result in a loss of precision.

assign

void assign(int v)
Assign an int value.

Parameters:
v - another value. The conversion may result in a loss of precision.

assign

void assign(long v)
Assign a long value.

Parameters:
v - another value. The conversion may result in a loss of precision.

assign

void assign(short v)
Assign short value.

Parameters:
v - another value. The conversion may result in a loss of precision.

assign

void assign(float v)
Assign a float value.

Parameters:
v - another value. The conversion may result in a loss of precision.

assign

void assign(double v)
Assign a double value.

Parameters:
v - another value. The conversion may result in a loss of precision.

Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .