Package org.apache.xerces.xs
Interface ShortList
-
- All Superinterfaces:
java.util.Collection,java.lang.Iterable,java.util.List
public interface ShortList extends java.util.ListTheShortListis an immutable ordered collection ofunsigned short.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(short item)Checks if theunsigned shortitemis a member of this list.intgetLength()The number ofunsigned shorts in the list.shortitem(int index)Returns theindexth item in the collection.-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
-
-
-
Method Detail
-
getLength
int getLength()
The number ofunsigned shorts in the list. The range of valid child object indices is 0 tolength-1inclusive.
-
contains
boolean contains(short item)
Checks if theunsigned shortitemis a member of this list.- Parameters:
item-unsigned shortwhose presence in this list is to be tested.- Returns:
- True if this list contains the
unsigned shortitem.
-
item
short item(int index) throws XSExceptionReturns theindexth item in the collection. The index starts at 0.- Parameters:
index- index into the collection.- Returns:
- The
unsigned shortat theindexth position in theShortList. - Throws:
XSException- INDEX_SIZE_ERR: ifindexis greater than or equal to the number of objects in the list.
-
-