| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final ListIterator | |
| public static final XSObjectListImpl | EMPTY_LIST
An immutable empty list. |
| private XSObject[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | XSObjectListImpl(XSObject[]
the data array array, int the number of elements length)Construct an XSObjectList implementation |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public boolean | contains(Object
element whose presence in this list is to be tested value)Overrides java. Implements java. true if this list contains the specified element.
|
| private boolean | |
| private boolean | |
| public Object | get(int
index of the element to return index)Implements abstract java. Implements java. |
| public int | getLength()
Implements org. XSObjects in the list.
|
| public XSObject | Returns: The XSObject at theindexth position in the
XSObjectList, or null if that is not a
valid index.index into the collection. index)Implements org. indexth item in the collection.
|
| public Iterator | iterator()
Overrides java. Implements java. |
| public ListIterator | listIterator()
Overrides java. Implements java. |
| public ListIterator | listIterator(int
index of the first element to be returned from the
list iterator (by a call to index)next)Overrides java. Implements java. |
| private ListIterator | |
| public int | size()
Implements abstract java. Implements java. |
| public Object[] | toArray()
Overrides java. Implements java. |
| public Object[] | toArray(Object[]
the array into which the elements of this list are to
be stored, if it is big enough; otherwise, a new array of the
same runtime type is allocated for this purpose. a)Overrides java. Implements java. |
| private void |
| DEFAULT_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_SIZE | |
| EMPTY_ITERATOR | back to summary |
|---|---|
| private static final ListIterator<E> EMPTY_ITERATOR | |
| EMPTY_LIST | back to summary |
|---|---|
| public static final XSObjectListImpl EMPTY_LIST An immutable empty list. | |
| fArray | back to summary |
|---|---|
| private XSObject[] fArray | |
| fLength | back to summary |
|---|---|
| private int fLength | |
| XSObjectListImpl | back to summary |
|---|---|
| public XSObjectListImpl() | |
| XSObjectListImpl | back to summary |
|---|---|
| public XSObjectListImpl(XSObject[] array, int length) Construct an XSObjectList implementation
| |
| addXSObject | back to summary |
|---|---|
| public void addXSObject(XSObject object) | |
| addXSObject | back to summary |
|---|---|
| public void addXSObject(int index, XSObject object) | |
| clearXSObjectList | back to summary |
|---|---|
| public void clearXSObjectList() | |
| contains | back to summary |
|---|---|
| public boolean contains(Object value) Overrides java. Implements java. Doc from java. Returns
| |
| containsNull | back to summary |
|---|---|
| private boolean containsNull() | |
| containsObject | back to summary |
|---|---|
| private boolean containsObject(Object value) | |
| get | back to summary |
|---|---|
| public Object get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| getLength | back to summary |
|---|---|
| public int getLength() Implements org. The number of | |
| item | back to summary |
|---|---|
| public XSObject item(int index) Implements org. Returns the
| |
| iterator | back to summary |
|---|---|
| public Iterator Overrides java. Implements java. Doc from java. Returns an iterator over the elements in this list in proper sequence.
| |
| listIterator | back to summary |
|---|---|
| public ListIterator Overrides java. Implements java. Doc from java. Returns a list iterator over the elements in this list (in proper sequence).
| |
| listIterator | back to summary |
|---|---|
| public ListIterator Overrides java. Implements java. Doc from java. Returns a list iterator over the elements in this list (in proper
sequence), starting at the specified position in the list.
The specified index indicates the first element that would be
returned by an initial call to
| |
| listIterator0 | back to summary |
|---|---|
| private ListIterator | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |
| toArray | back to summary |
|---|---|
| public Object[] toArray() Overrides java. Implements java. Doc from java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). The returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array even if this list is backed by an array). The caller is thus free to modify the returned array. This method acts as bridge between array-based and collection-based APIs.
| |
| toArray | back to summary |
|---|---|
| public Object[] toArray(Object[] a) Overrides java. Implements java. Doc from java. Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. If the list fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this list. If the list fits in the specified array with room to spare (i.e.,
the array has more elements than the list), the element in the array
immediately following the end of the list is set to Like the Suppose
Note that toArray(new Object[0]) is identical in function to
toArray().
| |
| toArray0 | back to summary |
|---|---|
| private void toArray0(Object[] a) | |
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(Object
the element to insert o)Implements java. |
| public boolean | hasNext()
Implements java. true if this list iterator has more elements when
traversing the list in the forward direction.
|
| public boolean | hasPrevious()
Implements java. true if this list iterator has more elements when
traversing the list in the reverse direction.
|
| public Object | next()
Implements java. |
| public int | nextIndex()
Implements java. next.
|
| public Object | previous()
Implements java. |
| public int | previousIndex()
Implements java. previous.
|
| public void | remove()
Implements java. next or previous (optional operation).
|
| public void | set(Object
the element with which to replace the last element returned by
o)next or previousImplements java. next or
previous with the specified element (optional operation).
|
| index | back to summary |
|---|---|
| private int index | |
| XSObjectListIterator | back to summary |
|---|---|
| public XSObjectListIterator(int index) | |
| add | back to summary |
|---|---|
| public void add(Object o) Implements java. Doc from java. Inserts the specified element into the list (optional operation).
The element is inserted immediately before the element that
would be returned by
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| hasPrevious | back to summary |
|---|---|
| public boolean hasPrevious() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Object next() Implements java. Doc from java. Returns the next element in the list and advances the cursor position.
This method may be called repeatedly to iterate through the list,
or intermixed with calls to
| |
| nextIndex | back to summary |
|---|---|
| public int nextIndex() Implements java. Doc from java. Returns the index of the element that would be returned by a
subsequent call to
| |
| previous | back to summary |
|---|---|
| public Object previous() Implements java. Doc from java. Returns the previous element in the list and moves the cursor
position backwards. This method may be called repeatedly to
iterate through the list backwards, or intermixed with calls to
| |
| previousIndex | back to summary |
|---|---|
| public int previousIndex() Implements java. Doc from java. Returns the index of the element that would be returned by a
subsequent call to
| |
| remove | back to summary |
|---|---|
| public void remove() Implements java. Doc from java. Removes from the list the last element that was returned by | |
| set | back to summary |
|---|---|
| public void set(Object o) Implements java. Doc from java. Replaces the last element returned by
| |