public final class ShortListImpl
extends java.util.AbstractList
implements org.apache.xerces.xs.ShortList
| Modifier and Type | Field and Description |
|---|---|
static ShortListImpl |
EMPTY_LIST
An immutable empty list.
|
| 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(java.lang.Object obj) |
java.lang.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, toStringpublic 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.getLength in interface org.apache.xerces.xs.ShortListpublic boolean contains(short item)
unsigned short item is a
member of this list.contains in interface org.apache.xerces.xs.ShortListitem - unsigned short whose presence in this list
is to be tested.unsigned short
item.public short item(int index)
throws org.apache.xerces.xs.XSException
org.apache.xerces.xs.ShortListindexth item in the collection. The index
starts at 0.item in interface org.apache.xerces.xs.ShortListindex - index into the collection.unsigned short at the indexth
position in the ShortList.org.apache.xerces.xs.XSException - INDEX_SIZE_ERR: if index is greater than or equal to the
number of objects in the list.public boolean equals(java.lang.Object obj)
equals in interface java.util.Collectionequals in interface java.util.Listequals in class java.util.AbstractListpublic java.lang.Object get(int index)
get in interface java.util.Listget in class java.util.AbstractListpublic int size()
size in interface java.util.Collectionsize in interface java.util.Listsize in class java.util.AbstractCollectionCopyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.