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
indexth item in the collection. |
int |
size() |
add, add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, add, addAll, addAll, clear, contains, containsAll, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streampublic 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
ShortListindexth item in the collection. The index
starts at 0.item in interface ShortListindex - index into the collection.unsigned short at the indexth
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 Collectionequals in interface Listequals in class AbstractListpublic Object get(int index)
get in interface Listget in class AbstractListpublic int size()
size in interface Collectionsize in interface Listsize in class AbstractCollectionCopyright © 2018 JBoss by Red Hat. All rights reserved.