Package com.yahoo.jrt
Class Int16Array
- java.lang.Object
-
- com.yahoo.jrt.Value
-
- com.yahoo.jrt.Int16Array
-
public class Int16Array extends Value
16-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 Constructor Description Int16Array(short[] value)
Create from a Java-type value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short[]
asInt16Array()
Interpret this value as aInt16Array
and return the contents as an appropriate Java typeint
count()
Obtain the number of entries stored in this value.java.lang.String
toString()
Force a proper toStringbyte
type()
Obtain the type identifier for this value-
Methods inherited from class com.yahoo.jrt.Value
asData, asDataArray, asDouble, asDoubleArray, asFloat, asFloatArray, asInt16, asInt32, asInt32Array, asInt64, asInt64Array, asInt8, asInt8Array, asString, asStringArray, asUtf8Array
-
-
-
-
Method Detail
-
type
public byte type()
Description copied from class:Value
Obtain the type identifier for this value
-
count
public int count()
Description copied from class:Value
Obtain the number of entries stored in this value. This is 1 for basic data types and the size of the array for array types.
-
asInt16Array
public short[] asInt16Array()
Description copied from class:Value
Interpret this value as aInt16Array
and return the contents as an appropriate Java type- Overrides:
asInt16Array
in classValue
- Returns:
- the value contained in this object as a Java type
-
-