Modifier and Type | Field and Description |
---|---|
static ShortList |
EMPTY_LIST
An immutable empty list.
|
Constructor and Description |
---|
ShortListImpl(short[] array,
int length)
Construct an XSObjectList implementation
|
public static final ShortList 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.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.