public class IntegerArrayList extends TOP implements Iterable<Integer>, UimaSerializable, CommonArrayFS<Integer>, RandomAccess, Cloneable
Modifier and Type | Field and Description |
---|---|
static String |
_FeatName_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<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, wrapGetIntCatchException
finalize, getClass, notify, notifyAll, wait, wait, wait
_reset_cas_data, clone
getValuesAsCommaSeparatedString, 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, setStringValue
public static final String _TypeName
public static final int typeIndexID
public static final int type
public static final String _FeatName_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<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)
CommonArrayFS
copyValuesFrom
in interface CommonArrayFS<Integer>
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 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)
FeatureStructure
equals
in interface FeatureStructure
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()
FeatureStructure
hashCode
in interface FeatureStructure
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 IntStream stream()
public void forEach(IntConsumer action)
action
- -Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.