    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

##

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

##

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

##

IncrBag

     public IncrBag()

  Make a new pure bag using the default underlying Bag implementation

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!

##

clone

     protected Object clone() throws CloneNotSupportedException

  Make a copy. Uses lazy update.

  Overrides:
    clone in class Object

addingIfAbsent

     public synchronized Bag addingIfAbsent(Object element) throws IllegalElementException

  Implements collections.Bag.addingIfAbsent

  See Also:
    addingIfAbsent

adding

     public synchronized Bag adding(Object element) throws IllegalElementException

  Implements collections.Bag.adding

  See Also:
    adding

excluding

     public synchronized Collection excluding(Object element)

  Implements collections.Collection.excluding.

  Overrides:
    excluding in class IncrImpl
  See Also:
    excluding

removingOneOf

     public synchronized Collection removingOneOf(Object element)

  Implements collections.Collection.removingOneOf

  Overrides:
    removingOneOf in class IncrImpl
  See Also:
    removingOneOf

replacingAllOf

     public synchronized Collection replacingAllOf(Object oldElement,
                                                   Object newElement) throws IllegalElementException

  Implements collections.Collection.replacingAllOf

  Overrides:
    replacingAllOf in class IncrImpl
  See Also:
    replacingAllOf

replacingOneOf

     public synchronized Collection replacingOneOf(Object oldElement,
                                                   Object newElement) throws IllegalElementException

  Implements collections.Collection.replacingOneOf

  Overrides:
    replacingOneOf in class IncrImpl
  See Also:
    replacingOneOf

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