2005/5/9

     
 

class SynchronizedCollection

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::util::SynchronizedCollection Class Reference

#include <SynchronizedCollections.h>

Inheritance diagram for acdk::util::SynchronizedCollection:

acdk::lang::Object acdk::util::Collection acdk::io::Serializable acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::util::SynchronizedList acdk::util::SynchronizedSet acdk::util::SynchronizedMapEntySet acdk::util::SynchronizedSortedSet List of all members.

Detailed Description

API: Java<br/>.

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.21
Date:
Date
2005/04/09 19:26:57


Public Member Functions

 SynchronizedCollection (IN(RCollection) coll, IN(acdk::lang::Object) sync=Nil)
virtual void lock ()
 lock the object instance.

virtual void unlock ()
 unlock the object instance Note: Will be overwritten by acdk::io::Reader and acdk::io::Writer Note: if Unsynchronized or isStack is set, this call will have no effect

virtual bool add (IN(acdk::lang::Object) o)
virtual bool addAll (IN(RCollection) col)
virtual void clear ()
virtual bool contains (IN(acdk::lang::Object) o)
virtual bool containsAll (IN(RCollection) c1)
virtual bool equals (IN(acdk::lang::Object) o)
 Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.

virtual int hashCode ()
virtual bool isEmpty ()
virtual RIterator iterator ()
virtual bool remove (IN(acdk::lang::Object) o)
virtual bool removeAll (IN(RCollection) col)
virtual bool retainAll (IN(RCollection) col)
virtual int size ()
virtual::acdk::lang::RObjectArray toArray ()
virtual::acdk::lang::RObjectArray toArray (IN(::acdk::lang::RObjectArray) array)

Static Public Member Functions

acdk::lang::Object create_instance ()

Protected Attributes

acdk::lang::Object _lock
RCollection _coll


Constructor & Destructor Documentation

acdk::util::SynchronizedCollection::SynchronizedCollection IN(RCollection coll,
IN(acdk::lang::Object sync = Nil
[inline]
 


Member Function Documentation

virtual bool acdk::util::SynchronizedCollection::add IN(acdk::lang::Object o  )  [inline, virtual]
 

Implements acdk::util::Collection.

Reimplemented in acdk::util::SynchronizedList, acdk::util::SynchronizedSet, and acdk::util::SynchronizedSortedSet.

virtual bool acdk::util::SynchronizedCollection::addAll IN(RCollection col  )  [inline, virtual]
 

Implements acdk::util::Collection.

Reimplemented in acdk::util::SynchronizedList, acdk::util::SynchronizedSet, and acdk::util::SynchronizedSortedSet.

virtual void acdk::util::SynchronizedCollection::clear  )  [inline, virtual]
 

Implements acdk::util::Collection.

Reimplemented in acdk::util::SynchronizedList, acdk::util::SynchronizedSet, and acdk::util::SynchronizedSortedSet.

virtual bool acdk::util::SynchronizedCollection::contains IN(acdk::lang::Object o  )  [inline, virtual]
 

Implements acdk::util::Collection.

Reimplemented in acdk::util::SynchronizedList, acdk::util::SynchronizedSet, and acdk::util::SynchronizedSortedSet.

virtual bool acdk::util::SynchronizedCollection::containsAll IN(RCollection c1  )  [inline, virtual]
 

Implements acdk::util::Collection.

Reimplemented in acdk::util::SynchronizedList, acdk::util::SynchronizedSet, and acdk::util::SynchronizedSortedSet.

acdk::lang::Object acdk::util::SynchronizedCollection::create_instance  )  [inline, static]
 

Reimplemented from acdk::lang::Object.

virtual bool acdk::util::SynchronizedCollection::equals IN(acdk::lang::Object o  )  [inline, virtual]
 

Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.

See also:
serialized_equals()

Reimplemented from acdk::lang::Object.

Reimplemented in acdk::util::SynchronizedList, acdk::util::SynchronizedSet, and acdk::util::SynchronizedSortedSet.

virtual int acdk::util::SynchronizedCollection::hashCode  )  [inline, virtual]
 

See also:
serialized_hashCode

Reimplemented from acdk::lang::Object.

Reimplemented in acdk::util::SynchronizedList, acdk::util::SynchronizedSet, and acdk::util::SynchronizedSortedSet.

virtual bool acdk::util::SynchronizedCollection::isEmpty  )  [inline, virtual]
 

Implements acdk::util::Collection.

Reimplemented in acdk::util::SynchronizedList, acdk::util::SynchronizedSet, and acdk::util::SynchronizedSortedSet.

virtual RIterator acdk::util::SynchronizedCollection::iterator  )  [inline, virtual]
 

Implements acdk::util::Collection.

Reimplemented in acdk::util::SynchronizedList, acdk::util::SynchronizedSet, acdk::util::SynchronizedSortedSet, and acdk::util::SynchronizedMapEntySet.

virtual void acdk::util::SynchronizedCollection::lock  )  [inline, virtual]
 

lock the object instance.

Note: Will be overwritten by acdk::io::Reader and acdk::io::Writer Note: if Unsynchronized or isStack is set, this call will have no effect

Reimplemented from acdk::lang::ObjectBase.

virtual bool acdk::util::SynchronizedCollection::remove IN(acdk::lang::Object o  )  [inline, virtual]
 

Implements acdk::util::Collection.

Reimplemented in acdk::util::SynchronizedList, acdk::util::SynchronizedSet, and acdk::util::SynchronizedSortedSet.

virtual bool acdk::util::SynchronizedCollection::removeAll IN(RCollection col  )  [inline, virtual]
 

Implements acdk::util::Collection.

Reimplemented in acdk::util::SynchronizedList, acdk::util::SynchronizedSet, and acdk::util::SynchronizedSortedSet.

virtual bool acdk::util::SynchronizedCollection::retainAll IN(RCollection col  )  [inline, virtual]
 

Implements acdk::util::Collection.

Reimplemented in acdk::util::SynchronizedList, acdk::util::SynchronizedSet, and acdk::util::SynchronizedSortedSet.

virtual int acdk::util::SynchronizedCollection::size  )  [inline, virtual]
 

Implements acdk::util::Collection.

Reimplemented in acdk::util::SynchronizedList, acdk::util::SynchronizedSet, and acdk::util::SynchronizedSortedSet.

acdk::lang::RObjectArray acdk::util::SynchronizedCollection::toArray IN(::acdk::lang::RObjectArray array  )  [inline]
 

acdk::lang::RObjectArray acdk::util::SynchronizedCollection::toArray  )  [inline, virtual]
 

Implements acdk::util::Collection.

Reimplemented in acdk::util::SynchronizedList, acdk::util::SynchronizedSet, and acdk::util::SynchronizedSortedSet.

virtual void acdk::util::SynchronizedCollection::unlock  )  [inline, virtual]
 

unlock the object instance Note: Will be overwritten by acdk::io::Reader and acdk::io::Writer Note: if Unsynchronized or isStack is set, this call will have no effect

Reimplemented from acdk::lang::ObjectBase.


Member Data Documentation

RCollection acdk::util::SynchronizedCollection::_coll [protected]
 

acdk::lang::Object acdk::util::SynchronizedCollection::_lock [mutable, protected]
 

Reimplemented in acdk::util::SynchronizedMapEntySet.