ShortListImplpublic class ShortListImpl extends Object implements ShortListContaints a list of Object's. |
Fields Summary |
---|
private short[] | fArray | private int | fLength |
Constructors Summary |
---|
public ShortListImpl(short[] array, int length)Construct an XSObjectList implementation
fArray = array;
fLength = length;
|
Methods Summary |
---|
public boolean | contains(short item)Checks if the unsigned short item is a
member of this list.
for (int i = 0; i < fLength; i++) {
if (fArray[i] == item)
return true;
}
return false;
| public int | getLength()The number of Objects in the list. The range of valid
child node indices is 0 to length-1 inclusive.
return fLength;
| public short | item(int index)
if (index < 0 || index >= fLength)
throw new XSException(XSException.INDEX_SIZE_ERR, null);
return fArray[index];
|
|