Data Request Broker
2-3-release

fr.gael.drb.value
Interface NumericArray

All Superinterfaces:
Comparison, DrbItem, DrbSequence, Value, ValueArray
All Known Implementing Classes:
AbstractNumericArray, BooleanArray, ByteArray, DoubleArray, FloatArray, IntArray, LongArray, ShortArray, UnsignedByteArray, UnsignedIntArray, UnsignedLongArray, UnsignedShortArray

public interface NumericArray
extends ValueArray, Comparison

Numeric array value wrapper.


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(int index, boolean v)
          Assign a boolean value.
 void assign(int index, byte v)
          Assign a byte value.
 void assign(int index, double v)
          Assign a double value.
 void assign(int index, float v)
          Assign a float value.
 void assign(int index, int v)
          Assign an int value.
 void assign(int index, long v)
          Assign a long value.
 void assign(int index, short v)
          Assign short value.
 boolean booleanValue(int index)
          Returns this value as a boolean.
 byte byteValue(int index)
          Returns this value as a byte (signed 8 bits).
 double doubleValue(int index)
          Returns this value as a double (signed 64 bits IEEE 754).
 float floatValue(int index)
          Returns this value as a float (signed 32 bits IEEE 754).
 int intValue(int index)
          Returns this value as an integer (signed 32 bits).
 long longValue(int index)
          Returns this value as a long integer (signed 64 bits).
 short shortValue(int index)
          Returns this value as a short integer (signed 16 bits).
 
Methods inherited from interface fr.gael.drb.value.ValueArray
assign, getArrayType, getElement, length
 
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.DrbSequence
addItem, atomize, getItem, getLength, removeItem
 
Methods inherited from interface fr.gael.drb.value.Comparison
compareTo
 

Method Detail

booleanValue

boolean booleanValue(int index)
Returns this value as a boolean.

Parameters:
index - position where to retrieve the value.
Returns:
the numeric value represented by this object after conversion to type byte.

byteValue

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

Parameters:
index - position where to retrieve the value.
Returns:
the numeric value represented by this object after conversion to type byte.

shortValue

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

Parameters:
index - position where to retrieve the value.
Returns:
the numeric value represented by this object after conversion to type short.

intValue

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

Parameters:
index - position where to retrieve the value.
Returns:
the numeric value represented by this object after conversion to type int.

longValue

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

Parameters:
index - position where to retrieve the value.
Returns:
the numeric value represented by this object after conversion to type long.

floatValue

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

Parameters:
index - position where to retrieve the value.
Returns:
the numeric value represented by this object after conversion to type float.

doubleValue

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

Parameters:
index - position where to retrieve the value.
Returns:
the numeric value represented by this object after conversion to type double.

assign

void assign(int index,
            boolean v)
Assign a boolean value.

Parameters:
index - index of element to replace.
v - another value.

assign

void assign(int index,
            byte v)
Assign a byte value.

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

assign

void assign(int index,
            int v)
Assign an int value.

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

assign

void assign(int index,
            long v)
Assign a long value.

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

assign

void assign(int index,
            short v)
Assign short value.

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

assign

void assign(int index,
            float v)
Assign a float value.

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

assign

void assign(int index,
            double v)
Assign a double value.

Parameters:
index - index of element to replace.
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 .