| Modifier and Type | Class and Description |
|---|---|
| private class | IonSequenceLite.
SubListView throws a |
| Modifier and Type | Field and Description |
|---|---|
| protected static final IonValueLite[] | EMPTY_VALUE_ARRAY
A zero-length array. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv | IonSequenceLite(ContainerlessContext context, Collection<? extends IonValue>
the initial set of child elements. If elements)null, then the new
instance will have .Constructs a sequence value not backed by binary. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(IonValue
is the value to be appended to this sequence. element)Overrides com. Implements com. Appends a child value to the end of this sequence. |
| public ValueFactory | add()
Implements com. Provides a factory that when invoked constructs a new value and
|
| public void | add(int
index at which the specified element is to be inserted index, IonValue is the element to be appended to this sequence. element)Implements com. Inserts a child value at the specified position in this sequence. |
| public ValueFactory | add(final int
element to be appended to this list index)Implements com. Provides a factory that when invoked constructs a new value and
|
| public boolean | addAll(Collection<? extends IonValue>
elements to be appended to this sequence. c)Implements com. Appends all of the elements in the specified collection to the end of this sequence, in the order that they are returned by the collection's iterator. |
| public boolean | addAll(int
index at which to insert first element from the specified collection. index, Collection<? extends IonValue> elements to be inserted into this sequence. c)Implements com. Inserts all of the elements in the specified collection into this sequence at the specified position. |
| private static void | |
| public IonSequence | clone()
Overrides com. Implements com. Creates a copy of this value and all of its children. |
| public boolean | contains(Object
element whose presence in this list is to be tested o)Implements com. Determines whether this sequence contains the given instance. |
| public boolean | containsAll(Collection<?>
collection to be checked for containment in this list c)Implements com. Determines whether this sequence contains all of the given instances. |
| public <T extends IonValue> T[] | extract(Class<T> type)
Implements com. Removes all children of this sequence, returning them in an array. |
| public int | indexOf(Object
the element to search for. o)Implements com. Returns the index in the sequence of the specified element, or -1 if this sequence doesn't contain the element. |
| public int | lastIndexOf(Object
the element to search for. o)Implements com. Returns the index in the sequence of the specified element, or -1 if this sequence doesn't contain the element. |
| public IonValue | remove(int
the index of the element to be removed. index)Implements com. Removes the element at the specified position. |
| public boolean | remove(Object
element to be removed from this list, if present o)Implements com. Removes a given |
| public boolean | removeAll(Collection<?>
collection containing elements to be removed from this list c)Implements com. Removes all elements from this sequence that are also contained in the specified collection. |
| public boolean | retainAll(Collection<?>
collection containing elements to be retained in this list c)Implements com. Retains only the elements in this sequence that are also contained in the specified collection. |
| public IonValue | set(int
index of the element to replace. index, IonValue element to be stored at the specified position. element)Implements com. Replaces the element at the specified position in this list with the specified element. |
| public List | subList(int
low endpoint (inclusive) of the subList fromIndex, int high endpoint (exclusive) of the subList toIndex)Implements com.
Returns a view of the portion of this list according to
|
| public IonValue[] | toArray()
Implements com. Returns an array containing all of the elements in this sequence in proper order. |
| public <T> T[] | toArray(T[]
the array into which the elements of this sequence are to be
stored, if it is big enough; otherwise, a new array of the same
runtime type is allocated for this purpose. a)Implements com. Returns an array containing all of the elements in this sequence in proper order; the runtime type of the returned array is that of the specified array. |