diff --git a/src/java/org/apache/commons/collections/decorators/package.html b/src/java/org/apache/commons/collections/decorators/package.html index f13dfb220..1a158d3c0 100644 --- a/src/java/org/apache/commons/collections/decorators/package.html +++ b/src/java/org/apache/commons/collections/decorators/package.html @@ -9,16 +9,17 @@ The following decorator types are provided in the package:
  • Unmodifiable - ensures the collection cannot be altered
  • Predicated - ensures that only elements that are valid according to a predicate can be added
  • Typed - ensures that only elements that are of a specific type can be added -
  • Lazy - creates objects in the collection on demand -
  • FixedSize - ensures that the size of the collection cannot change
  • Blocking - blocks until data available when calling get() on an empty collection +
  • FixedSize - ensures that the size of the collection cannot change +
  • Lazy - creates objects in the collection on demand +
  • Ordered - ensures that insertion order is remembered in a Map/Set

    Each collection can be constructed using a static decorate() method on the class. They can also be constructed from the XxxUtils class where Xxx is the collection type.

    -List stringOnlyList = TypedList(new ArrayList(), String.class);
    +List stringOnlyList = TypedList.decorate(new ArrayList(), String.class);
     List otherStringOnlyList = ListUtils.typedList(new ArrayList(), String.class);