| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| 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 value)
Overrides java. Implements java. Returns |
| private boolean | |
| private boolean | |
| public XSObject | get(int index)
Implements abstract java. Implements java. Returns the element at the specified position in this list. |
| public int | getLength()
Implements com. The number of |
| 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 com. Returns the |
| public Iterator | iterator()
Overrides java. Implements java. Returns an iterator over the elements in this list in proper sequence. |
| public ListIterator | listIterator()
Overrides java. Implements java. Returns a list iterator over the elements in this list (in proper sequence). |
| public ListIterator | listIterator(int index)
Overrides java. Implements java. Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list. |
| private ListIterator | |
| public int | size()
Implements abstract java. Implements java. Returns the number of elements in this list. |
| public Object[] | toArray()
Overrides java. Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). |
| public Object[] | toArray(Object[] a)
Overrides java. Implements 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. |
| private void |
| DEFAULT_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_SIZE | |
| EMPTY_ITERATOR | back to summary |
|---|---|
| private static final ListIterator<XSObject> 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 XSObject 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 com. The number of | |
| item | back to summary |
|---|---|
| public XSObject item(int index) Implements com. 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) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(XSObject object)
Implements java. Inserts the specified element into the list (optional operation). |
| public boolean | hasNext()
Implements java. Returns |
| public boolean | hasPrevious()
Implements java. Returns |
| public XSObject | next()
Implements java. Returns the next element in the list and advances the cursor position. |
| public int | nextIndex()
Implements java. Returns the index of the element that would be returned by a
subsequent call to |
| public XSObject | previous()
Implements java. Returns the previous element in the list and moves the cursor position backwards. |
| public int | previousIndex()
Implements java. Returns the index of the element that would be returned by a
subsequent call to |
| public void | remove()
Implements java. Removes from the list the last element that was returned by |
| public void | set(XSObject object)
Implements java. Replaces the last element returned by |
| EmptyIterator | back to summary |
|---|---|
| pack-priv EmptyIterator() | |
| add | back to summary |
|---|---|
| public void add(XSObject object) 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 XSObject 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 XSObject 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(XSObject object) Implements java. Doc from java. Replaces the last element returned by | |
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(XSObject o)
Implements java. Inserts the specified element into the list (optional operation). |
| public boolean | hasNext()
Implements java. Returns |
| public boolean | hasPrevious()
Implements java. Returns |
| public XSObject | next()
Implements java. Returns the next element in the list and advances the cursor position. |
| public int | nextIndex()
Implements java. Returns the index of the element that would be returned by a
subsequent call to |
| public XSObject | previous()
Implements java. Returns the previous element in the list and moves the cursor position backwards. |
| public int | previousIndex()
Implements java. Returns the index of the element that would be returned by a
subsequent call to |
| public void | remove()
Implements java. Removes from the list the last element that was returned by |
| public void | set(XSObject o)
Implements java. Replaces the last element returned by |
| index | back to summary |
|---|---|
| private int index | |
| XSObjectListIterator | back to summary |
|---|---|
| public XSObjectListIterator(int index) | |
| add | back to summary |
|---|---|
| public void add(XSObject 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 XSObject 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 XSObject 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(XSObject o) Implements java. Doc from java. Replaces the last element returned by | |