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


Constructor Index

 o IncrSeq()
Make a new pure Seq using the default underlying Seq implementation
 o IncrSeq(UpdatableSeq)
Make a pure seq managing the given updatable seq s.

Method Index

 o at(int)
Implements collections.Seq.at.
 o clone()
Make a copy.
 o doEdit(UpdatableCollection)
Perform updates within an edit chain
 o excluding(Object)
Implements collections.Collection.excluding.
 o first()
Implements collections.Seq.first.
 o firstIndexOf(Object)
Implements collections.Seq.firstIndexOf.
 o firstIndexOf(Object, int)
Implements collections.Seq.firstIndexOf.
 o insertingAt(int, Object)
Implements collections.Seq.insertingAt.
 o last()
Implements collections.Seq.last.
 o lastIndexOf(Object)
Implements collections.Seq.lastIndexOf.
 o lastIndexOf(Object, int)
Implements collections.Seq.lastIndexOf.
 o removingAt(int)
Implements collections.Seq.removingAt.
 o removingOneOf(Object)
Implements collections.Collection.removingOneOf
 o replacingAllOf(Object, Object)
Implements collections.Collection.replacingAllOf.
 o replacingAt(int, Object)
Implements collections.Seq.replacingAt
 o replacingOneOf(Object, Object)
Implements collections.Collection.replacingOneOf
 o subseq(int, int)
Implements collections.Seq.subseq.

Constructors

 o IncrSeq
 public IncrSeq()
Make a new pure Seq using the default underlying Seq implementation

 o 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!

Methods

 o clone
 protected Object clone() throws CloneNotSupportedException
Make a copy. Uses lazy update.

Overrides:
clone in class Object
 o at
 public synchronized Object at(int index) throws NoSuchElementException
Implements collections.Seq.at.

See Also:
at
 o first
 public synchronized Object first() throws NoSuchElementException
Implements collections.Seq.first.

See Also:
first
 o last
 public synchronized Object last() throws NoSuchElementException
Implements collections.Seq.last.

See Also:
last
 o firstIndexOf
 public synchronized int firstIndexOf(Object element,
                                      int startingIndex)
Implements collections.Seq.firstIndexOf.

See Also:
firstIndexOf
 o firstIndexOf
 public synchronized int firstIndexOf(Object element)
Implements collections.Seq.firstIndexOf.

See Also:
firstIndexOf
 o lastIndexOf
 public synchronized int lastIndexOf(Object element,
                                     int startingIndex)
Implements collections.Seq.lastIndexOf.

See Also:
lastIndexOf
 o lastIndexOf
 public synchronized int lastIndexOf(Object element)
Implements collections.Seq.lastIndexOf.

See Also:
lastIndexOf
 o 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
 o removingOneOf
 public synchronized Collection removingOneOf(Object element)
Implements collections.Collection.removingOneOf

Overrides:
removingOneOf in class IncrImpl
See Also:
removingOneOf
 o 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
 o replacingOneOf
 public synchronized Collection replacingOneOf(Object oldElement,
                                               Object newElement) throws IllegalElementException
Implements collections.Collection.replacingOneOf

Overrides:
replacingOneOf in class IncrImpl
See Also:
replacingOneOf
 o 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
 o insertingAt
 public synchronized Seq insertingAt(int index,
                                     Object element) throws IllegalElementException, NoSuchElementException
Implements collections.Seq.insertingAt.

See Also:
insertingAt
 o removingAt
 public synchronized Seq removingAt(int index) throws NoSuchElementException
Implements collections.Seq.removingAt.

See Also:
removingAt
 o replacingAt
 public synchronized Seq replacingAt(int index,
                                     Object element) throws IllegalElementException, NoSuchElementException
Implements collections.Seq.replacingAt

See Also:
replacingAt
 o 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