public class IntegerArrayList extends TOP implements Iterable<Integer>, UimaSerializable, CommonArrayFS, RandomAccess, Cloneable
Modifier and Type | Field and Description |
---|---|
static String |
_FeatName_intArray |
static int |
_FI_intArray |
static String |
_TypeName |
static int |
type |
static int |
typeIndexID |
_singleton
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(org.apache.uima.cas.impl.TypeImpl type,
org.apache.uima.cas.impl.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.
|
org.apache.uima.cas.impl.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 v)
Copy values from another array of the same kind
|
static IntegerArrayList |
create(JCas jcas,
int[] a)
Convenience - create a IntegerArrayList from an existing FeatureStructure[]
|
boolean |
equals(Object o) |
void |
forEach(java.util.function.IntConsumer action)
Version of forEach that doesn't box
|
int |
get(int i) |
int |
getTypeIndexID() |
int |
hashCode() |
int |
indexOf(int i) |
org.apache.uima.internal.util.IntListIterator |
intListIterator() |
boolean |
isEmpty() |
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() |
java.util.stream.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, 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, removeFromIndexes, removeFromIndexes, removeFromIndexes, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toShortString, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
_reset_cas_data, clone
getValuesAsCommaSeparatedString, toStringArray
_getTypeCode, _id, clone, getAddress, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue
public static final String _TypeName
public static final int typeIndexID
public static final int type
public static final String _FeatName_intArray
public static final int _FI_intArray
protected IntegerArrayList()
public IntegerArrayList(org.apache.uima.cas.impl.TypeImpl type, org.apache.uima.cas.impl.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 TOP
public void _init_from_cas_data()
_init_from_cas_data
in interface UimaSerializable
public void _save_to_cas_data()
UimaSerializable
_save_to_cas_data
in interface UimaSerializable
public int get(int i)
i
- -public void set(int i, int v)
i
- -v
- -public int size()
size
in interface CommonArrayFS
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
src
- -srcPos
- -destPos
- -length
- -public void copyToArray(int srcPos, String[] dest, int destPos, int length)
copyToArray
in interface CommonArrayFS
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 v)
CommonArrayFS
copyValuesFrom
in interface CommonArrayFS
v
- the other arraypublic static IntegerArrayList create(JCas jcas, int[] a)
jcas
- -a
- -public org.apache.uima.cas.impl.FeatureStructureImplC _superClone()
_superClone
in interface UimaSerializable
public boolean isEmpty()
ArrayList.isEmpty()
public 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 org.apache.uima.cas.impl.FeatureStructureImplC
AbstractCollection.toString()
public boolean add(int e)
e
- -ArrayList.add(java.lang.Object)
public boolean equals(Object o)
equals
in class org.apache.uima.cas.impl.FeatureStructureImplC
o
- -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()
hashCode
in class org.apache.uima.cas.impl.FeatureStructureImplC
AbstractList.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 java.util.stream.IntStream stream()
public void forEach(java.util.function.IntConsumer action)
action
- -Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.