public class XSObjectListImpl extends AbstractList implements XSObjectList
| Modifier and Type | Field and Description |
|---|---|
static XSObjectListImpl |
EMPTY_LIST
An immutable empty list.
|
modCount| Constructor and Description |
|---|
XSObjectListImpl() |
XSObjectListImpl(XSObject[] array,
int length)
Construct an XSObjectList implementation
|
| Modifier and Type | Method and Description |
|---|---|
void |
addXSObject(int index,
XSObject object) |
void |
addXSObject(XSObject object) |
void |
clearXSObjectList() |
boolean |
contains(Object value) |
Object |
get(int index) |
int |
getLength()
The number of
XSObjects in the list. |
XSObject |
item(int index)
Returns the
indexth item in the collection. |
Iterator |
iterator() |
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, remove, removeRange, set, subListaddAll, containsAll, isEmpty, remove, removeAll, retainAll, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, add, addAll, addAll, clear, containsAll, equals, hashCode, indexOf, isEmpty, lastIndexOf, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subListparallelStream, removeIf, streampublic static final XSObjectListImpl EMPTY_LIST
public XSObjectListImpl()
public XSObjectListImpl(XSObject[] array, int length)
array - the data arraylength - the number of elementspublic int getLength()
XSObjects in the list. The range of valid
child node indices is 0 to length-1 inclusive.getLength in interface XSObjectListpublic XSObject item(int index)
indexth item in the collection. The index
starts at 0. If index is greater than or equal to the
number of nodes in the list, this returns null.item in interface XSObjectListindex - index into the collection.indexth position in the
XSObjectList, or null if that is not a
valid index.public void clearXSObjectList()
public void addXSObject(XSObject object)
public void addXSObject(int index,
XSObject object)
public boolean contains(Object value)
contains in interface Collectioncontains in interface Listcontains in class AbstractCollectionpublic Object get(int index)
get in interface Listget in class AbstractListpublic int size()
size in interface Collectionsize in interface Listsize in class AbstractCollectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Listiterator in class AbstractListpublic ListIterator listIterator()
listIterator in interface ListlistIterator in class AbstractListpublic ListIterator listIterator(int index)
listIterator in interface ListlistIterator in class AbstractListpublic Object[] toArray()
toArray in interface CollectiontoArray in interface ListtoArray in class AbstractCollectionpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface ListtoArray in class AbstractCollectionCopyright © 2018 JBoss by Red Hat. All rights reserved.