    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class collections.UpdatableBagImpl

    java.lang.Object
       |
       +----collections.UpdatableImpl
               |
               +----collections.UpdatableBagImpl

public abstract class UpdatableBagImpl
extends UpdatableImpl
implements UpdatableBag

UpdatableBagImpl extends UpdatableImpl to provide default implementations of some Bag operations.

##

UpdatableBagImpl()
  Initialize at version 0, an empty count, and null screener
UpdatableBagImpl(Predicate)
  Initialize at version 0, an empty count, and supplied screener

##

add(Object)
  Add an occurrence of the indicated element to the collection.
addElements(Enumeration)
  Implements collections.UpdatableBag.addElements
addIfAbsent(Object)
  Add an occurrence of the indicated element if it is not already present in the collection.
adding(Object)
  Implements collections.Bag.adding
addingIfAbsent(Object)
  Implements collections.Bag.addingIfAbsent

##

UpdatableBagImpl

     protected UpdatableBagImpl()

  Initialize at version 0, an empty count, and null screener

UpdatableBagImpl

     protected UpdatableBagImpl(Predicate screener)

  Initialize at version 0, an empty count, and supplied screener

##

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

addElements

     public synchronized void addElements(Enumeration e) throws IllegalElementException, CorruptedEnumerationException

  Implements collections.UpdatableBag.addElements

  See Also:
    addElements

    All Packages  Class Hierarchy  This Package  Previous  Next  Index