public interface CommonArrayFS<E> extends FeatureStructure
| Modifier and Type | Method and Description | 
|---|---|
| void | copyFromArray(String[] src,
             int srcOffset,
             int destOffset,
             int length)Copy the contents of an external string array into this array. | 
| void | copyToArray(int srcOffset,
           String[] dest,
           int destOffset,
           int length)Copy the contents of the array to an external string array. | 
| void | copyValuesFrom(CommonArrayFS<E> v)Copy values from another array of the same kind | 
| default String | getValuesAsCommaSeparatedString() | 
| default boolean | isEmpty() | 
| int | size()Return the size of the array. | 
| default String[] | toStringArray()Creates a new string array and copies this array values into it. | 
_getTypeCode, _id, clone, equals, getAddress, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getJCas, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValueint size()
default String[] toStringArray()
void copyToArray(int srcOffset,
                 String[] dest,
                 int destOffset,
                 int length)
          throws ArrayIndexOutOfBoundsException
srcOffset - The index of the first element to copy.dest - The array to copy to.destOffset - Where to start copying into dest.length - The number of elements to copy.ArrayIndexOutOfBoundsException - If srcOffset < 0 or length > size() or
              destOffset + length > destArray.length.void copyFromArray(String[] src, int srcOffset, int destOffset, int length) throws ArrayIndexOutOfBoundsException, NumberFormatException
src - The source array.srcOffset - Where to start copying in the source array.destOffset - Where to start copying to in the destination array.length - The number of elements to copy.ArrayIndexOutOfBoundsException - When length conditions are not met.NumberFormatException - When the input strings do not represent valid floats.UnsupportedOperationException - When the array is an array of FSs.default String getValuesAsCommaSeparatedString()
void copyValuesFrom(CommonArrayFS<E> v)
v - the other arraydefault boolean isEmpty()
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.