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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrimitiveArrayFSImpl(float[] aArray) PrimitiveArrayFSImpl(int[] aArray) PrimitiveArrayFSImpl(String[] aArray) -
Method Summary
Methods inherited from class FeatureStructureImpl
getFeatureNames, getFeatureValue, getId, getIndexed, getType, isIndexed, setFeatureValue, setId, setIndexed, setIndexed, setTypeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface FeatureStructure
getFeatureNames, getFeatureValue, getId, getIndexed, getType, isIndexed, setFeatureValue, setId, setIndexed, setIndexed, setType
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
mArrayObject
-
-
Constructor Details
-
PrimitiveArrayFSImpl
-
PrimitiveArrayFSImpl
public PrimitiveArrayFSImpl(int[] aArray) -
PrimitiveArrayFSImpl
public PrimitiveArrayFSImpl(float[] aArray)
-
-
Method Details
-
size
public int size()Description copied from interface:PrimitiveArrayFSGet the size of this array.- Specified by:
sizein interfacePrimitiveArrayFS- Returns:
- the size
-
toIntArray
public int[] toIntArray()Description copied from interface:PrimitiveArrayFSGets this value as an integer array.- Specified by:
toIntArrayin interfacePrimitiveArrayFS- Returns:
- integer array value, empty array if value is not an array
-
toFloatArray
public float[] toFloatArray()Description copied from interface:PrimitiveArrayFSGets this value as an float array.- Specified by:
toFloatArrayin interfacePrimitiveArrayFS- Returns:
- float array value, empty array if value is not an array
-
toStringArray
Description copied from interface:PrimitiveArrayFSGets this value as an string array.- Specified by:
toStringArrayin interfacePrimitiveArrayFS- Returns:
- string array value, empty array if value is not an array
-
get
- Overrides:
getin classFeatureStructureImpl
-
toString
- Overrides:
toStringin classFeatureStructureImpl
-