All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class collections.CheckedBag

java.lang.Object
   |
   +----collections.CheckedCollection
           |
           +----collections.CheckedBag

public class CheckedBag
extends CheckedCollection
implements UpdatableBag

Constructor Index

 o CheckedBag(UpdatableBag)
Wrap Bag b inside a checker

Method Index

 o add(Object)
Checks collections.UpdatableBag.add according to its specification
 o addElements(Enumeration)
Checks collections.UpdatableBag.addElements
 o addIfAbsent(Object)
Checks collections.UpdatableBag.addIfAbsent according to its specification
 o adding(Object)
Checks collections.Bag.adding
 o addingIfAbsent(Object)
Checks collections.Bag.addingIfAbsent
 o checkAdd(Collection, Collection, Object, boolean, boolean)
Helper for checking add*
 o clone()
Make a Checked clone of underlying collection
 o prev()
return casted version of CheckedCollection.prev.
 o thys()
return casted version of CheckedCollection.thys.

Constructors

 o CheckedBag
 public CheckedBag(UpdatableBag b)
Wrap Bag b inside a checker

Methods

 o clone
 protected Object clone() throws CloneNotSupportedException
Make a Checked clone of underlying collection

Overrides:
clone in class CheckedCollection
 o thys
 public UpdatableBag thys()
return casted version of CheckedCollection.thys.

 o prev
 public UpdatableBag prev()
return casted version of CheckedCollection.prev.

 o addIfAbsent
 public synchronized void addIfAbsent(Object element) throws IllegalElementException
Checks collections.UpdatableBag.addIfAbsent according to its specification

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

See Also:
addingIfAbsent
 o add
 public synchronized void add(Object element) throws IllegalElementException
Checks collections.UpdatableBag.add according to its specification

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

See Also:
adding
 o addElements
 public synchronized void addElements(Enumeration e) throws IllegalElementException, CorruptedEnumerationException
Checks collections.UpdatableBag.addElements

See Also:
addElements
 o checkAdd
 protected void checkAdd(Collection nc,
                         Collection oc,
                         Object element,
                         boolean ifAbsent,
                         boolean verchk)
Helper for checking add*


All Packages  Class Hierarchy  This Package  Previous  Next  Index