You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2003/05/10 14:51:06 UTC

cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections/decorators package.html

scolebourne    2003/05/10 05:51:06

  Added:       collections/src/java/org/apache/commons/collections/decorators
                        package.html
  Log:
  Add package html for decorators package
  
  Revision  Changes    Path
  1.1                  jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/package.html
  
  Index: package.html
  ===================================================================
  <BODY>
  <p>
  This package contains collection implementations that decorate other collections.
  A decorator wraps a class and adds some specific additional functionality.
  <p>
  The following decorator types are provided in the package:
  <ul>
  <li>Synchronized - synchronizes method access for multi-threaded environments
  <li>Unmodifiable - ensures the collection cannot be altered
  <li>Predicated - ensures that only elements that are valid according to a predicate can be added
  <li>Typed - ensures that only elements that are of a specific type can be added
  <li>Lazy - creates objects in the collection on demand
  <li>FixedSize - ensures that the size of the collection cannot change
  <li>Blocking - blocks until data available when calling get() on an empty collection
  </ul>
  <p>
  Each collection can be constructed using a static <code>decorate()</code> method on
  the class. They can also be constructed from the <code>XxxUtils</code> class where
  Xxx is the collection type.
  <pre>
  List stringOnlyList = TypedList(new ArrayList(), String.class);
  List otherStringOnlyList = ListUtils.typedList(new ArrayList(), String.class);
  </pre>
  </BODY>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org