All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class collections.IncrBag

java.lang.Object
   |
   +----collections.IncrImpl
           |
           +----collections.IncrBag

public final class IncrBag
extends IncrImpl
implements Immutable, Bag
Incremental Implementation of Immutable Bag


Constructor Index

 o IncrBag()
Make a new pure bag using the default underlying Bag implementation
 o IncrBag(UpdatableBag)
Make a pure bag managing the given updatable bag s.

Method Index

 o adding(Object)
Implements collections.Bag.adding
 o addingIfAbsent(Object)
Implements collections.Bag.addingIfAbsent
 o clone()
Make a copy.
 o doEdit(UpdatableCollection)
Perform updates within an edit chain
 o excluding(Object)
Implements collections.Collection.excluding.
 o removingOneOf(Object)
Implements collections.Collection.removingOneOf
 o replacingAllOf(Object, Object)
Implements collections.Collection.replacingAllOf
 o replacingOneOf(Object, Object)
Implements collections.Collection.replacingOneOf

Constructors

 o IncrBag
 public IncrBag()
Make a new pure bag using the default underlying Bag implementation

 o IncrBag
 public IncrBag(UpdatableBag s)
Make a pure bag managing the given updatable bag s. Warning: Do not modify s during the the lifetime of the constructed pure bag!

Methods

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

Overrides:
clone in class Object
 o addingIfAbsent
 public synchronized Bag addingIfAbsent(Object element) throws IllegalElementException
Implements collections.Bag.addingIfAbsent

See Also:
addingIfAbsent
 o adding
 public synchronized Bag adding(Object element) throws IllegalElementException
Implements collections.Bag.adding

See Also:
adding
 o excluding
 public synchronized Collection excluding(Object element)
Implements collections.Collection.excluding.

Overrides:
excluding in class IncrImpl
See Also:
excluding
 o removingOneOf
 public synchronized Collection removingOneOf(Object element)
Implements collections.Collection.removingOneOf

Overrides:
removingOneOf in class IncrImpl
See Also:
removingOneOf
 o replacingAllOf
 public synchronized Collection replacingAllOf(Object oldElement,
                                               Object newElement) throws IllegalElementException
Implements collections.Collection.replacingAllOf

Overrides:
replacingAllOf in class IncrImpl
See Also:
replacingAllOf
 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 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