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