Top Description Methods
com.sun.org.apache.xerces.internal.xs

public Interface ShortList

extends List<Short>
Known Direct Implementers
com.sun.org.apache.xerces.internal.impl.xs.util.ShortListImpl
Imports
java.util.List

The ShortList is an immutable ordered collection of unsigned short.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

True if this list contains the unsigned short item.
contains
(short
unsigned short whose presence in this list is to be tested.
item
)

Checks if the unsigned short item is a member of this list.

public int
getLength()

The number of unsigned shorts in the list.

public short

Returns:

The unsigned short at the indexth position in the ShortList.
item
(int
index into the collection.
index
)

Returns the indexth item in the collection.

Inherited from java.util.List:
addaddaddAlladdAlladdFirstaddLastclearcontainscontainsAllcopyOfequalsgetgetFirstgetLasthashCodeindexOfisEmptyiteratorlastIndexOflistIteratorlistIteratorofofofofofofofofofofofofremoveremoveremoveAllremoveFirstremoveLastreplaceAllretainAllreversedsetsizesortspliteratorsubListtoArraytoArray

Method Detail

containsback to summary
public boolean contains(short item)

Checks if the unsigned short item is a member of this list.

Parameters
item:short

unsigned short whose presence in this list is to be tested.

Returns:boolean

True if this list contains the unsigned short item.

getLengthback to summary
public int getLength()

The number of unsigned shorts in the list. The range of valid child object indices is 0 to length-1 inclusive.

itemback to summary
public short item(int index) throws XSException

Returns the indexth item in the collection. The index starts at 0.

Parameters
index:int

index into the collection.

Returns:short

The unsigned short at the indexth position in the ShortList.

Exceptions
XSException:
INDEX_SIZE_ERR: if index is greater than or equal to the number of objects in the list.