public final class ShortListImpl
extends java.util.AbstractList
implements org.apache.xerces.xs.ShortList
Modifier and Type | Field and Description |
---|---|
static ShortListImpl |
EMPTY_LIST
An immutable empty list.
|
Constructor and Description |
---|
ShortListImpl(short[] array,
int length)
Construct an XSObjectList implementation
|
Modifier and Type | Method and Description |
---|---|
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
index th item in the collection. |
int |
size() |
add, add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
public static final ShortListImpl EMPTY_LIST
public ShortListImpl(short[] array, int length)
array
- the data arraylength
- the number of elementspublic 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.ShortList
public boolean contains(short item)
unsigned short
item
is a
member of this list.contains
in interface org.apache.xerces.xs.ShortList
item
- 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.ShortList
index
th item in the collection. The index
starts at 0.item
in interface org.apache.xerces.xs.ShortList
index
- index into the collection.unsigned short
at the index
th
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.Collection
equals
in interface java.util.List
equals
in class java.util.AbstractList
public java.lang.Object get(int index)
get
in interface java.util.List
get
in class java.util.AbstractList
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
size
in class java.util.AbstractCollection
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.