Improve documentation

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131461 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2003-12-28 14:55:46 +00:00
parent dccae620fe
commit b8bb52254d
4 changed files with 22 additions and 8 deletions

View File

@ -1,5 +1,5 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bag/HashBag.java,v 1.2 2003/12/03 00:49:38 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bag/HashBag.java,v 1.3 2003/12/28 14:55:46 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
@ -69,9 +69,15 @@ import org.apache.commons.collections.Bag;
/** /**
* Implements <code>Bag</code>, using a <code>HashMap</code> to provide the * Implements <code>Bag</code>, using a <code>HashMap</code> to provide the
* data storage. This is the standard implementation of a bag. * data storage. This is the standard implementation of a bag.
* <p>
* A <code>Bag</code> stores each object in the collection together with a
* count of occurances. Extra methods on the interface allow multiple copies
* of an object to be added or removed at once. It is important to read the
* interface javadoc carefully as several methods violate the
* <code>Collection</code> interface specification.
* *
* @since Commons Collections 3.0 * @since Commons Collections 3.0
* @version $Revision: 1.2 $ $Date: 2003/12/03 00:49:38 $ * @version $Revision: 1.3 $ $Date: 2003/12/28 14:55:46 $
* *
* @author Chuck Burdick * @author Chuck Burdick
* @author Stephen Colebourne * @author Stephen Colebourne

View File

@ -1,5 +1,5 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bag/SynchronizedBag.java,v 1.1 2003/11/16 00:05:43 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bag/SynchronizedBag.java,v 1.2 2003/12/28 14:55:46 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
@ -68,9 +68,10 @@ import org.apache.commons.collections.set.SynchronizedSet;
* for a multi-threaded environment. * for a multi-threaded environment.
* <p> * <p>
* Methods are synchronized, then forwarded to the decorated bag. * Methods are synchronized, then forwarded to the decorated bag.
* Iterators must be separately synchronized around the loop.
* *
* @since Commons Collections 3.0 * @since Commons Collections 3.0
* @version $Revision: 1.1 $ $Date: 2003/11/16 00:05:43 $ * @version $Revision: 1.2 $ $Date: 2003/12/28 14:55:46 $
* *
* @author Stephen Colebourne * @author Stephen Colebourne
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bag/SynchronizedSortedBag.java,v 1.1 2003/11/16 00:05:43 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bag/SynchronizedSortedBag.java,v 1.2 2003/12/28 14:55:46 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
@ -67,9 +67,10 @@ import org.apache.commons.collections.SortedBag;
* for a multi-threaded environment. * for a multi-threaded environment.
* <p> * <p>
* Methods are synchronized, then forwarded to the decorated bag. * Methods are synchronized, then forwarded to the decorated bag.
* Iterators must be separately synchronized around the loop.
* *
* @since Commons Collections 3.0 * @since Commons Collections 3.0
* @version $Revision: 1.1 $ $Date: 2003/11/16 00:05:43 $ * @version $Revision: 1.2 $ $Date: 2003/12/28 14:55:46 $
* *
* @author Stephen Colebourne * @author Stephen Colebourne
*/ */

View File

@ -1,5 +1,5 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bag/TreeBag.java,v 1.2 2003/12/03 00:49:38 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/bag/TreeBag.java,v 1.3 2003/12/28 14:55:46 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
@ -74,9 +74,15 @@ import org.apache.commons.collections.SortedBag;
* <p> * <p>
* Order will be maintained among the bag members and can be viewed through the * Order will be maintained among the bag members and can be viewed through the
* iterator. * iterator.
* <p>
* A <code>Bag</code> stores each object in the collection together with a
* count of occurances. Extra methods on the interface allow multiple copies
* of an object to be added or removed at once. It is important to read the
* interface javadoc carefully as several methods violate the
* <code>Collection</code> interface specification.
* *
* @since Commons Collections 3.0 * @since Commons Collections 3.0
* @version $Revision: 1.2 $ $Date: 2003/12/03 00:49:38 $ * @version $Revision: 1.3 $ $Date: 2003/12/28 14:55:46 $
* *
* @author Chuck Burdick * @author Chuck Burdick
* @author Stephen Colebourne * @author Stephen Colebourne