Package org.apache.uima.cas_data.impl
Class PrimitiveArrayFSImpl
- java.lang.Object
-
- org.apache.uima.cas_data.impl.FeatureStructureImpl
-
- org.apache.uima.cas_data.impl.PrimitiveArrayFSImpl
-
- All Implemented Interfaces:
java.io.Serializable
,FeatureStructure
,PrimitiveArrayFS
public class PrimitiveArrayFSImpl extends FeatureStructureImpl implements PrimitiveArrayFS
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PrimitiveArrayFSImpl(float[] aArray)
PrimitiveArrayFSImpl(int[] aArray)
PrimitiveArrayFSImpl(java.lang.String[] aArray)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get()
int
size()
Get the size of this array.float[]
toFloatArray()
Gets this value as an float array.int[]
toIntArray()
Gets this value as an integer array.java.lang.String
toString()
java.lang.String[]
toStringArray()
Gets this value as an string array.-
Methods inherited from class org.apache.uima.cas_data.impl.FeatureStructureImpl
getFeatureNames, getFeatureValue, getId, getIndexed, getType, isIndexed, setFeatureValue, setId, setIndexed, setIndexed, setType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.uima.cas_data.FeatureStructure
getFeatureNames, getFeatureValue, getId, getIndexed, getType, isIndexed, setFeatureValue, setId, setIndexed, setIndexed, setType
-
-
-
-
Method Detail
-
size
public int size()
Description copied from interface:PrimitiveArrayFS
Get the size of this array.- Specified by:
size
in interfacePrimitiveArrayFS
- Returns:
- the size
-
toIntArray
public int[] toIntArray()
Description copied from interface:PrimitiveArrayFS
Gets this value as an integer array.- Specified by:
toIntArray
in interfacePrimitiveArrayFS
- Returns:
- integer array value, empty array if value is not an array
-
toFloatArray
public float[] toFloatArray()
Description copied from interface:PrimitiveArrayFS
Gets this value as an float array.- Specified by:
toFloatArray
in interfacePrimitiveArrayFS
- Returns:
- float array value, empty array if value is not an array
-
toStringArray
public java.lang.String[] toStringArray()
Description copied from interface:PrimitiveArrayFS
Gets this value as an string array.- Specified by:
toStringArray
in interfacePrimitiveArrayFS
- Returns:
- string array value, empty array if value is not an array
-
get
public java.lang.Object get()
- Overrides:
get
in classFeatureStructureImpl
-
toString
public java.lang.String toString()
- Overrides:
toString
in classFeatureStructureImpl
-
-