|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList
org.apache.xerces.impl.xs.util.ShortListImpl
public final class ShortListImpl
Contains a list of shorts.
| Field Summary | |
|---|---|
static ShortListImpl |
EMPTY_LIST
An immutable empty list. |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
ShortListImpl(short[] array,
int length)
Construct an XSObjectList implementation |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.util.AbstractList |
|---|
add, add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
| Field Detail |
|---|
public static final ShortListImpl EMPTY_LIST
| Constructor Detail |
|---|
public ShortListImpl(short[] array,
int length)
array - the data arraylength - the number of elements| Method Detail |
|---|
public 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.AbstractCollection
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||