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:
Serializable
,FeatureStructure
,PrimitiveArrayFS
- See Also:
-
Constructor Summary
ConstructorDescriptionPrimitiveArrayFSImpl
(float[] aArray) PrimitiveArrayFSImpl
(int[] aArray) PrimitiveArrayFSImpl
(String[] aArray) -
Method Summary
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
-
Constructor Details
-
PrimitiveArrayFSImpl
-
PrimitiveArrayFSImpl
public PrimitiveArrayFSImpl(int[] aArray) -
PrimitiveArrayFSImpl
public PrimitiveArrayFSImpl(float[] aArray)
-
-
Method Details
-
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
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
- Overrides:
get
in classFeatureStructureImpl
-
toString
- Overrides:
toString
in classFeatureStructureImpl
-