public final class DoubleArray extends TOP implements CommonPrimitiveArray<Double>, DoubleArrayFSImpl, Iterable<Double>
FeatureStructureImplC.PrintReferences| Modifier and Type | Field and Description | 
|---|---|
| static String | _TypeName | 
| static int | type | 
| static int | typeIndexIDEach cover class when loaded sets an index. | 
_singleton_casView, _id, DISABLE_RUNTIME_FEATURE_VALIDATION, DISABLE_RUNTIME_FEATURE_VALUE_VALIDATION, IS_ENABLE_RUNTIME_FEATURE_VALIDATION, IS_ENABLE_RUNTIME_FEATURE_VALUE_VALIDATION, IS_V2_PRETTY_PRINT, V2_PRETTY_PRINT| Constructor and Description | 
|---|
| DoubleArray(JCas jcas,
           int length)Make a new DoubleArray of given size | 
| DoubleArray(TypeImpl t,
           CASImpl c,
           int length)used by generator Make a new DoubleArray of given size | 
| Modifier and Type | Method and Description | 
|---|---|
| double[] | _getTheArray() | 
| boolean | contains(double item) | 
| void | copyFromArray(double[] src,
             int srcPos,
             int destPos,
             int length)Copy the contents of an external array into this array. | 
| void | copyFromArray(String[] src,
             int srcPos,
             int destPos,
             int length)Copy the contents of an external string array into this array. | 
| void | copyToArray(int srcPos,
           double[] dest,
           int destPos,
           int length)Copy the contents of the array from  starttoendto the destinationdestArraywith destination offsetdestOffset. | 
| void | copyToArray(int srcPos,
           String[] dest,
           int destPos,
           int length)Copy the contents of the array to an external string array. | 
| void | copyValuesFrom(CommonArrayFS v)Copy values from another array of the same kind | 
| static DoubleArray | create(JCas jcas,
      double[] a) | 
| void | forEach(DoubleConsumer action)non boxing version | 
| double | get(int i)Get the i-th element from the array. | 
| int | getTypeIndexID()used to obtain reference to the _Type instance | 
| PrimitiveIterator.OfDouble | iterator() | 
| void | set(int i,
   double v)Set the i-th value. | 
| void | setArrayValueFromString(int i,
                       String v)Internal Use Only. | 
| int | size()return the size of the array | 
| Spliterator.OfDouble | spliterator() | 
| DoubleStream | stream() | 
| double[] | toArray()Create a Java array that is a copy of the internal CAS array. | 
_createJCasHashMapReserve, _createSearchKey_copyIntAndRefArraysEqTypesFrom, _copyIntAndRefArraysFrom, _copyIntArrayEqTypesFrom, _getBooleanValueNc, _getBooleanValueNc, _getByteValueNc, _getByteValueNc, _getDoubleValueNc, _getDoubleValueNc, _getFeatFromAdjOffset, _getFeatureValueNc, _getFeatureValueNc, _getFloatValueNc, _getFloatValueNc, _getIntLikeValue, _getIntValueNc, _getIntValueNc, _getLongValueNc, _getLongValueNc, _getRefValueCommon, _getShortValueNc, _getShortValueNc, _getStringValueNc, _getStringValueNc, _getTypeCode, _getTypeImpl, _getView, _id, _inSetSortedIndex, _isJCasHashMapReserve, _isPearTrampoline, _maybeGetBaseForPearFs, _maybeGetBaseForPearFs, _maybeGetPearFs, _maybeGetPearFs, _resetInSetSortedIndex, _setBooleanValueNcNj, _setBooleanValueNcNj, _setBooleanValueNfc, _setByteValueNcNj, _setByteValueNcNj, _setByteValueNfc, _setDoubleValueNcNj, _setDoubleValueNcNj, _setDoubleValueNfc, _setFeatureValueNcNj, _setFeatureValueNcNj, _setFeatureValueNcWj, _setFloatValueNcNj, _setFloatValueNcNj, _setFloatValueNfc, _setInSetSortedIndexed, _setIntLikeValue, _setIntLikeValueNcNj, _setIntValueCJ, _setIntValueNcNj, _setIntValueNcNj, _setIntValueNfc, _setIntValueNfcCJ, _setJCasHashMapReserve, _setLongValueCJ, _setLongValueNcNj, _setLongValueNcNj, _setLongValueNfc, _setLongValueNfcCJ, _setPearTrampoline, _setRefValueCJ, _setRefValueCommon, _setRefValueCommonWj, _setRefValueNfcCJ, _setShortValueNcNj, _setShortValueNcNj, _setShortValueNfc, _setStringValueNcNj, _setStringValueNcWj, _setStringValueNfc, _setTypeImpl, addStringOrPrimitive, addToIndexes, addToIndexes, addToIndexes, clone, compare, equals, getAddress, getBooleanValue, getByteValue, getCAS, getCASImpl, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getLowLevelCas, getShortValue, getStringValue, getType, hashCode, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrintShort, removeFromIndexes, removeFromIndexes, removeFromIndexes, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toShortString, toString, toString, wrapGetIntCatchExceptionfinalize, getClass, notify, notifyAll, wait, wait, waitgetValuesAsCommaSeparatedString, isEmpty, toStringArray_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, setStringValuepublic static final String _TypeName
public static final int typeIndexID
public static final int type
public DoubleArray(JCas jcas, int length)
jcas - The JCaslength - the length of the arraypublic int getTypeIndexID()
getTypeIndexID in class TOPpublic double get(int i)
DoubleArrayFSget in interface DoubleArrayFSi - the indexDoubleArrayFS.get(int)public void set(int i,
                double v)
DoubleArrayFSset in interface DoubleArrayFSi - The index.v - The value.DoubleArrayFS.set(int , double)public void copyFromArray(double[] src,
                          int srcPos,
                          int destPos,
                          int length)
DoubleArrayFScopyFromArray in interface DoubleArrayFSsrc - The source array.srcPos - Where to start copying in the source array.destPos - Where to start copying to in the destination array.length - The number of elements to copy.DoubleArrayFS.copyFromArray(double[], int, int, int)public void copyToArray(int srcPos,
                        double[] dest,
                        int destPos,
                        int length)
DoubleArrayFSstart to end to the destination
 destArray with destination offset destOffset.copyToArray in interface DoubleArrayFSsrcPos - The index of the first element to copy.dest - The array to copy to.destPos - Where to start copying into dest.length - The number of elements to copy.DoubleArrayFS.copyToArray(int, double[], int, int)public double[] toArray()
DoubleArrayFStoArray in interface DoubleArrayFSDoubleArrayFS.toArray()public int size()
size in interface CommonArrayFS<Double>public void copyToArray(int srcPos,
                        String[] dest,
                        int destPos,
                        int length)
CommonArrayFScopyToArray in interface CommonArrayFS<Double>srcPos - The index of the first element to copy.dest - The array to copy to.destPos - Where to start copying into dest.length - The number of elements to copy.CommonArrayFS.copyToArray(int, String[], int, int)public void copyFromArray(String[] src, int srcPos, int destPos, int length)
CommonArrayFScopyFromArray in interface CommonArrayFS<Double>src - The source array.srcPos - Where to start copying in the source array.destPos - Where to start copying to in the destination array.length - The number of elements to copy.CommonArrayFS.copyFromArray(String[], int, int, int)public double[] _getTheArray()
public void copyValuesFrom(CommonArrayFS v)
CommonArrayFScopyValuesFrom in interface CommonArrayFS<Double>v - the other arraypublic void setArrayValueFromString(int i,
                                    String v)
CommonPrimitiveArraysetArrayValueFromString in interface CommonPrimitiveArray<Double>i - the indexv - the value to set at the above indexpublic Spliterator.OfDouble spliterator()
spliterator in interface Iterable<Double>public PrimitiveIterator.OfDouble iterator()
public DoubleStream stream()
public static DoubleArray create(JCas jcas, double[] a)
jcas - Which CAS to create the array ina - the source for the array's initial valuespublic void forEach(DoubleConsumer action)
action - -public boolean contains(double item)
item - the item to see if is in the arrayCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.