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.


Constructor Index

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

Method Index

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

Constructors

 o UpdatableBagImpl
 protected UpdatableBagImpl()
Initialize at version 0, an empty count, and null screener

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

Methods

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