All Packages Class Hierarchy This Package Previous Next Index
Class collections.UpdatableSeqImpl
java.lang.Object
|
+----collections.UpdatableImpl
|
+----collections.UpdatableSeqImpl
- public abstract class UpdatableSeqImpl
- extends UpdatableImpl
- implements UpdatableSeq
UpdatableSeqImpl extends UpdatableImpl to provide
default implementations of some Seq operations.
-
UpdatableSeqImpl()
- Initialize at version 0, an empty count, and null screener
-
UpdatableSeqImpl(Predicate)
- Initialize at version 0, an empty count, and supplied screener
-
appendElements(Enumeration)
- Append all elements of enumeration e, preserving their order.
-
at(int)
- Return the element at the indicated index
-
first()
- Return the first element, if it exists.
-
firstIndexOf(Object)
- Find the leftmost occurrence of an element.
-
firstIndexOf(Object, int)
- Report the index of leftmost occurrence of an element from a
given starting point, or -1 if there is no such index.
-
insertAt(int, Object)
- Insert element at indicated index.
-
insertElementsAt(int, Enumeration)
- Insert all elements of enumeration e at a given index, preserving
their order.
-
insertFirst(Object)
- Insert element at front of the sequence.
-
insertingAt(int, Object)
- Implements collections.Seq.insertingAt.
-
insertLast(Object)
- insert element at end of the sequence
Behaviorally equivalent to insertAt(size(), element)
-
last()
- Return the last element, if it exists.
-
lastIndexOf(Object)
- Find the rightmost occurrence of an element.
-
lastIndexOf(Object, int)
- Report the index of righttmost occurrence of an element from a
given starting point, or -1 if there is no such index.
-
prependElements(Enumeration)
- Prepend all elements of enumeration e, preserving their order.
-
removeAt(int)
- Remove element at indicated index.
-
removeFirst()
- Remove the leftmost element.
-
removeFromTo(int, int)
- Remove the elements from fromIndex to toIndex, inclusive.
-
removeLast()
- Remove the rightmost element.
-
removingAt(int)
- Implements collections.Seq.removingAt.
-
replaceAt(int, Object)
- replace element at indicated index with new value
-
replaceFirst(Object)
- replace element at front of the sequence with new value.
-
replaceLast(Object)
- replace element at end of the sequence with new value
Behaviorally equivalent to replaceAt(size()-1, element);
-
replacingAt(int, Object)
- Implements collections.Seq.replacingAt
-
subseq(int, int)
- Construct a new Seq that is a clone of self except
that it does not contain the elements before index or
after index+length.
UpdatableSeqImpl
protected UpdatableSeqImpl()
- Initialize at version 0, an empty count, and null screener
UpdatableSeqImpl
protected UpdatableSeqImpl(Predicate screener)
- Initialize at version 0, an empty count, and supplied screener
insertingAt
public synchronized Seq insertingAt(int index,
Object element) throws IllegalElementException, NoSuchElementException
- Implements collections.Seq.insertingAt.
- See Also:
- insertingAt
removingAt
public synchronized Seq removingAt(int index) throws NoSuchElementException
- Implements collections.Seq.removingAt.
- See Also:
- removingAt
replacingAt
public synchronized Seq replacingAt(int index,
Object element) throws IllegalElementException, NoSuchElementException
- Implements collections.Seq.replacingAt
- See Also:
- replacingAt
All Packages Class Hierarchy This Package Previous Next Index