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
index th 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, subList
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, containsAll, equals, hashCode, indexOf, isEmpty, lastIndexOf, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList
parallelStream, removeIf, stream
public 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 XSObjectList
public XSObject item(int index)
index
th 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 XSObjectList
index
- index into the collection.index
th 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 Collection
contains
in interface List
contains
in class AbstractCollection
public Object get(int index)
get
in interface List
get
in class AbstractList
public int size()
size
in interface Collection
size
in interface List
size
in class AbstractCollection
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface List
iterator
in class AbstractList
public ListIterator listIterator()
listIterator
in interface List
listIterator
in class AbstractList
public ListIterator listIterator(int index)
listIterator
in interface List
listIterator
in class AbstractList
public Object[] toArray()
toArray
in interface Collection
toArray
in interface List
toArray
in class AbstractCollection
public Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface List
toArray
in class AbstractCollection
Copyright © 2019 JBoss by Red Hat. All rights reserved.