public final class LSInputListImpl extends AbstractList implements LSInputList
Modifier and Type | Field and Description |
---|---|
static LSInputListImpl |
EMPTY_LIST
An immutable empty list.
|
modCount
Constructor and Description |
---|
LSInputListImpl(LSInput[] array,
int length)
Construct an LSInputList implementation
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int index) |
int |
getLength()
The number of
LSInput s in the list. |
LSInput |
item(int index)
Returns the
index th item in the collection or
null if index is greater than or equal to
the number of objects in the list. |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList
parallelStream, removeIf, stream
public static final LSInputListImpl EMPTY_LIST
public LSInputListImpl(LSInput[] array, int length)
array
- the data arraylength
- the number of elementspublic int getLength()
LSInput
s in the list. The range of valid
child object indices is 0 to length-1
inclusive.getLength
in interface LSInputList
public LSInput item(int index)
index
th item in the collection or
null
if index
is greater than or equal to
the number of objects in the list. The index starts at 0.item
in interface LSInputList
index
- index into the collection.LSInput
at the index
th
position in the LSInputList
, or null
if
the index specified is not valid.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 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 © 2021 JBoss by Red Hat. All rights reserved.