public class

ShortListImpl

extends Object
implements ShortList
java.lang.Object
   ↳ org.apache.xerces.impl.xs.util.ShortListImpl

Class Overview

Containts a list of Object's.

Summary

Fields
public static final ShortList EMPTY_LIST An immutable empty list.
Public Constructors
ShortListImpl(short[] array, int length)
Construct an XSObjectList implementation
Public Methods
boolean contains(short item)
Checks if the unsigned short item is a member of this list.
boolean equals(Object obj)
int getLength()
The number of Objects in the list.
short item(int index)
Returns the indexth item in the collection.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.xerces.xs.ShortList

Fields

public static final ShortList EMPTY_LIST

An immutable empty list.

Public Constructors

public ShortListImpl (short[] array, int length)

Construct an XSObjectList implementation

Parameters
array the data array
length the number of elements

Public Methods

public boolean contains (short item)

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

Parameters
item unsigned short whose presence in this list is to be tested.
Returns
  • True if this list contains the unsigned short item.

public boolean equals (Object obj)

public int getLength ()

The number of Objects in the list. The range of valid child node indices is 0 to length-1 inclusive.

public short item (int index)

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

Parameters
index index into the collection.
Returns
  • The unsigned short at the indexth position in the ShortList.
Throws
XSException