public class IntegerArrayList extends TOP implements Iterable<Integer>, UimaSerializable, CommonArrayFS<Integer>, RandomAccess, Cloneable
FeatureStructureImplC.PrintReferences| Modifier and Type | Field and Description |
|---|---|
static String |
_FeatName_intArray |
static String |
_TypeName |
static int |
type |
static int |
typeIndexID |
_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| Modifier | Constructor and Description |
|---|---|
protected |
IntegerArrayList()
Never called.
|
|
IntegerArrayList(JCas jcas) |
|
IntegerArrayList(JCas jcas,
int length)
Make a new ArrayList with an initial size
|
|
IntegerArrayList(TypeImpl type,
CASImpl casImpl)
Internal - constructor used by generator
|
| Modifier and Type | Method and Description |
|---|---|
void |
_init_from_cas_data() |
void |
_save_to_cas_data()
This method is called by the framework before serialization of an instance of this
JCas class.
|
FeatureStructureImplC |
_superClone() |
boolean |
add(int e) |
void |
add(int index,
int element) |
void |
clear() |
boolean |
contains(int i) |
void |
copyFromArray(int[] src,
int srcPos,
int destPos,
int length) |
void |
copyFromArray(String[] src,
int srcPos,
int destPos,
int length)
Not supported, will throw UnsupportedOperationException
|
void |
copyToArray(int srcPos,
int[] dest,
int destPos,
int length) |
void |
copyToArray(int srcPos,
String[] dest,
int destPos,
int length)
Copies an array of ints to an Array of Strings.
|
void |
copyValuesFrom(CommonArrayFS<Integer> v)
Copy values from another array of the same kind
|
static IntegerArrayList |
create(JCas jcas,
int[] a)
Convenience - create a IntegerArrayList from an existing array.
|
boolean |
equals(Object o)
A feature structure is equal to another feature structure iff it is identical in the underlying
representation.
|
void |
forEach(IntConsumer action)
Version of forEach that doesn't box
|
int |
get(int i) |
int |
getTypeIndexID() |
int |
hashCode()
Will return a hash code that's consistent with equality, i.e., if two FSs are equal, they will
also return the same hash code.
|
int |
indexOf(int i) |
org.apache.uima.internal.util.IntListIterator |
intListIterator() |
PrimitiveIterator.OfInt |
iterator() |
int |
lastIndexOf(int i) |
boolean |
remove(int o) |
int |
removeAt(int index) |
void |
set(int i,
int v)
updates the i-th value of the IntegerArrayList
|
int |
size()
return the size of the array.
|
void |
sort() |
Spliterator.OfInt |
spliterator() |
IntStream |
stream() |
int[] |
toArray() |
int[] |
toArray(int[] a) |
String |
toString() |
_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, getAddress, getBooleanValue, getByteValue, getCAS, getCASImpl, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getLowLevelCas, getShortValue, getStringValue, getType, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrintShort, removeFromIndexes, removeFromIndexes, removeFromIndexes, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toShortString, toString, wrapGetIntCatchExceptionfinalize, getClass, notify, notifyAll, wait, wait, wait_reset_cas_data, clonegetValuesAsCommaSeparatedString, isEmpty, toStringArray_getTypeCode, _id, clone, getAddress, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getJCas, getLongValue, getShortValue, getStringValue, getType, 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 static final String _FeatName_intArray
protected IntegerArrayList()
public IntegerArrayList(TypeImpl type, CASImpl casImpl)
casImpl - the CAS this Feature Structure belongs totype - the type of this Feature Structurepublic IntegerArrayList(JCas jcas)
jcas - JCas to which this Feature Structure belongspublic IntegerArrayList(JCas jcas, int length)
jcas - The JCaslength - initial sizepublic int getTypeIndexID()
getTypeIndexID in class TOPpublic void _init_from_cas_data()
_init_from_cas_data in interface UimaSerializablepublic void _save_to_cas_data()
UimaSerializable_save_to_cas_data in interface UimaSerializablepublic int get(int i)
i - -public void set(int i,
int v)
i - -v - -public int size()
size in interface CommonArrayFS<Integer>public void copyFromArray(int[] src,
int srcPos,
int destPos,
int length)
src - -srcPos - -destPos - -length - -ArrayFS.copyFromArray(FeatureStructure[], int, int, int)public void copyToArray(int srcPos,
int[] dest,
int destPos,
int length)
srcPos - -dest - -destPos - -length - -ArrayFS.copyToArray(int, FeatureStructure[], int, int)public int[] toArray()
ArrayFS.toArray()public void copyFromArray(String[] src, int srcPos, int destPos, int length)
copyFromArray in interface CommonArrayFS<Integer>src - -srcPos - -destPos - -length - -public void copyToArray(int srcPos,
String[] dest,
int destPos,
int length)
copyToArray in interface CommonArrayFS<Integer>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.ArrayIndexOutOfBoundsException - If srcPos < 0 or
length > size() or
destPos + length > destArray.length.public void copyValuesFrom(CommonArrayFS<Integer> v)
CommonArrayFScopyValuesFrom in interface CommonArrayFS<Integer>v - the other arraypublic static IntegerArrayList create(JCas jcas, int[] a)
jcas - -a - -public FeatureStructureImplC _superClone()
_superClone in interface UimaSerializablepublic boolean contains(int i)
i - -public int indexOf(int i)
i - -ArrayList.indexOf(java.lang.Object)public int lastIndexOf(int i)
i - -ArrayList.lastIndexOf(java.lang.Object)public int[] toArray(int[] a)
a - -ArrayList.toArray(java.lang.Object[])public String toString()
toString in class FeatureStructureImplCAbstractCollection.toString()public boolean add(int e)
e - -ArrayList.add(java.lang.Object)public boolean equals(Object o)
FeatureStructureequals in interface FeatureStructureequals in class FeatureStructureImplCo - -AbstractList.equals(java.lang.Object)public void add(int index,
int element)
index - -element - -ArrayList.add(int, java.lang.Object)public int removeAt(int index)
index - -ArrayList.remove(int)public boolean remove(int o)
o - - locate and if found remove this objectArrayList.remove(java.lang.Object)public int hashCode()
FeatureStructurehashCode in interface FeatureStructurehashCode in class FeatureStructureImplCAbstractList.hashCode()public void clear()
ArrayList.clear()public PrimitiveIterator.OfInt iterator()
iterator in interface Iterable<Integer>ArrayList.iterator()public org.apache.uima.internal.util.IntListIterator intListIterator()
public void sort()
public Spliterator.OfInt spliterator()
spliterator in interface Iterable<Integer>public IntStream stream()
public void forEach(IntConsumer action)
action - -Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.