All Packages Class Hierarchy This Package Previous Next Index
Class collections.IncrSeq
java.lang.Object
|
+----collections.IncrImpl
|
+----collections.IncrSeq
- public final class IncrSeq
- extends IncrImpl
- implements Seq
Implementation of Immutable Seq
-
IncrSeq()
- Make a new pure Seq using the default underlying Seq implementation
-
IncrSeq(UpdatableSeq)
- Make a pure seq managing the given updatable seq s.
-
at(int)
- Implements collections.Seq.at.
-
clone()
- Make a copy.
-
doEdit(UpdatableCollection)
- Perform updates within an edit chain
-
excluding(Object)
- Implements collections.Collection.excluding.
-
first()
- Implements collections.Seq.first.
-
firstIndexOf(Object)
- Implements collections.Seq.firstIndexOf.
-
firstIndexOf(Object, int)
- Implements collections.Seq.firstIndexOf.
-
insertingAt(int, Object)
- Implements collections.Seq.insertingAt.
-
last()
- Implements collections.Seq.last.
-
lastIndexOf(Object)
- Implements collections.Seq.lastIndexOf.
-
lastIndexOf(Object, int)
- Implements collections.Seq.lastIndexOf.
-
removingAt(int)
- Implements collections.Seq.removingAt.
-
removingOneOf(Object)
- Implements collections.Collection.removingOneOf
-
replacingAllOf(Object, Object)
- Implements collections.Collection.replacingAllOf.
-
replacingAt(int, Object)
- Implements collections.Seq.replacingAt
-
replacingOneOf(Object, Object)
- Implements collections.Collection.replacingOneOf
-
subseq(int, int)
- Implements collections.Seq.subseq.
IncrSeq
public IncrSeq()
- Make a new pure Seq using the default underlying Seq implementation
IncrSeq
public IncrSeq(UpdatableSeq s)
- Make a pure seq managing the given updatable seq s.
Warning: Do not modify s during the the lifetime of the constructed pure seq!
clone
protected Object clone() throws CloneNotSupportedException
- Make a copy. Uses lazy update.
- Overrides:
- clone in class Object
at
public synchronized Object at(int index) throws NoSuchElementException
- Implements collections.Seq.at.
- See Also:
- at
first
public synchronized Object first() throws NoSuchElementException
- Implements collections.Seq.first.
- See Also:
- first
last
public synchronized Object last() throws NoSuchElementException
- Implements collections.Seq.last.
- See Also:
- last
firstIndexOf
public synchronized int firstIndexOf(Object element,
int startingIndex)
- Implements collections.Seq.firstIndexOf.
- See Also:
- firstIndexOf
firstIndexOf
public synchronized int firstIndexOf(Object element)
- Implements collections.Seq.firstIndexOf.
- See Also:
- firstIndexOf
lastIndexOf
public synchronized int lastIndexOf(Object element,
int startingIndex)
- Implements collections.Seq.lastIndexOf.
- See Also:
- lastIndexOf
lastIndexOf
public synchronized int lastIndexOf(Object element)
- Implements collections.Seq.lastIndexOf.
- See Also:
- lastIndexOf
subseq
public synchronized Seq subseq(int index,
int length) throws NoSuchElementException
- Implements collections.Seq.subseq.
Makes a full new Seq, not a lazy update.
- See Also:
- subseq
removingOneOf
public synchronized Collection removingOneOf(Object element)
- Implements collections.Collection.removingOneOf
- Overrides:
- removingOneOf in class IncrImpl
- See Also:
- removingOneOf
excluding
public synchronized Collection excluding(Object element)
- Implements collections.Collection.excluding.
If more than one occurrence of element exists, it makes
a full, non-lazy copy.
- Overrides:
- excluding in class IncrImpl
- See Also:
- excluding
replacingOneOf
public synchronized Collection replacingOneOf(Object oldElement,
Object newElement) throws IllegalElementException
- Implements collections.Collection.replacingOneOf
- Overrides:
- replacingOneOf in class IncrImpl
- See Also:
- replacingOneOf
replacingAllOf
public synchronized Collection replacingAllOf(Object oldElement,
Object newElement) throws IllegalElementException
- Implements collections.Collection.replacingAllOf.
If more than one occurrence of element exists, it makes
a full, non-lazy copy.
- Overrides:
- replacingAllOf in class IncrImpl
- See Also:
- replacingAllOf
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
doEdit
protected synchronized UpdatableCollection doEdit(UpdatableCollection c)
- Perform updates within an edit chain
- Overrides:
- doEdit in class IncrImpl
All Packages Class Hierarchy This Package Previous Next Index