|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xerces.impl.xs.util.ShortListImpl
public class ShortListImpl
Containts a list of Object's.
Field Summary | |
---|---|
static ShortList |
EMPTY_LIST
An immutable empty list. |
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)
|
int |
getLength()
The number of Objects in the list. |
short |
item(int index)
Returns the index th item in the collection. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ShortList EMPTY_LIST
Constructor Detail |
---|
public ShortListImpl(short[] array, int length)
array
- the data arraylength
- the number of elementsMethod Detail |
---|
public int getLength()
Objects
in the list. The range of valid
child node indices is 0 to length-1
inclusive.
getLength
in interface ShortList
public boolean contains(short item)
unsigned short
item
is a
member of this list.
contains
in interface ShortList
item
- unsigned short
whose presence in this list
is to be tested.
unsigned short
item
.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(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |