    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

##

CheckedBag(UpdatableBag)
  Wrap Bag b inside a checker

##

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

##

CheckedBag

     public CheckedBag(UpdatableBag b)

  Wrap Bag b inside a checker

##

clone

     protected Object clone() throws CloneNotSupportedException

  Make a Checked clone of underlying collection

  Overrides:
    clone in class CheckedCollection

thys

     public UpdatableBag thys()

  return casted version of CheckedCollection.thys.

prev

     public UpdatableBag prev()

  return casted version of CheckedCollection.prev.

addIfAbsent

     public synchronized void addIfAbsent(Object element) throws IllegalElementException

  Checks collections.UpdatableBag.addIfAbsent according to its specification

  See Also:
    addIfAbsent

addingIfAbsent

     public synchronized Bag addingIfAbsent(Object element) throws IllegalElementException

  Checks collections.Bag.addingIfAbsent

  See Also:
    addingIfAbsent

add

     public synchronized void add(Object element) throws IllegalElementException

  Checks collections.UpdatableBag.add according to its specification

  See Also:
    add

adding

     public synchronized Bag adding(Object element) throws IllegalElementException

  Checks collections.Bag.adding

  See Also:
    adding

addElements

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

  Checks collections.UpdatableBag.addElements

  See Also:
    addElements

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