Package com.yahoo.jrt
Class Int32Array
java.lang.Object
com.yahoo.jrt.Value
com.yahoo.jrt.Int32Array
32-bit integer array
-
Field Summary
Fields inherited from class com.yahoo.jrt.Value
DATA, DATA_ARRAY, DOUBLE, DOUBLE_ARRAY, FLOAT, FLOAT_ARRAY, INT16, INT16_ARRAY, INT32, INT32_ARRAY, INT64, INT64_ARRAY, INT8, INT8_ARRAY, STRING, STRING_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]Interpret this value as aInt32Arrayand return the contents as an appropriate Java typeintcount()Obtain the number of entries stored in this value.toString()Force a proper toStringbytetype()Obtain the type identifier for this valueMethods inherited from class com.yahoo.jrt.Value
asData, asDataArray, asDouble, asDoubleArray, asFloat, asFloatArray, asInt16, asInt16Array, asInt32, asInt64, asInt64Array, asInt8, asInt8Array, asString, asStringArray, asUtf8Array
-
Constructor Details
-
Int32Array
public Int32Array(int[] value) Create from a Java-type value- Parameters:
value- the value
-
-
Method Details
-
type
public byte type()Description copied from class:ValueObtain the type identifier for this value -
count
public int count()Description copied from class:ValueObtain the number of entries stored in this value. This is 1 for basic data types and the size of the array for array types. -
asInt32Array
public int[] asInt32Array()Description copied from class:ValueInterpret this value as aInt32Arrayand return the contents as an appropriate Java type- Overrides:
asInt32Arrayin classValue- Returns:
- the value contained in this object as a Java type
-
toString
Description copied from class:ValueForce a proper toString
-