Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 35920 invoked from network); 13 Mar 2002 06:07:20 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 13 Mar 2002 06:07:20 -0000 Received: (qmail 1391 invoked by uid 97); 13 Mar 2002 06:07:28 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 1324 invoked by uid 97); 13 Mar 2002 06:07:27 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 1308 invoked by uid 97); 13 Mar 2002 06:07:26 -0000 Date: 13 Mar 2002 06:07:14 -0000 Message-ID: <20020313060714.51282.qmail@icarus.apache.org> From: mas@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/collections RELEASE-NOTES-2.0.html X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N mas 02/03/12 22:07:14 Modified: collections RELEASE-NOTES-2.0.html Log: Update release notes for Bag and BeanMap changes. Revision Changes Path 1.5 +43 -5 jakarta-commons/collections/RELEASE-NOTES-2.0.html Index: RELEASE-NOTES-2.0.html =================================================================== RCS file: /home/cvs/jakarta-commons/collections/RELEASE-NOTES-2.0.html,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- RELEASE-NOTES-2.0.html 7 Mar 2002 18:24:10 -0000 1.4 +++ RELEASE-NOTES-2.0.html 13 Mar 2002 06:07:14 -0000 1.5 @@ -11,8 +11,9 @@

These collections are new to Collections 2.0:

    -
  • Bag - A Collection that keeps a count of its members of the same - type, using hashCode to check for equality. Suppose + +
  • Bag - A Collection that counts the number of times an + object appears in the collection. Suppose you have a Bag that contains {a, a, b, c}. Calling getCount on a would return 2, while calling uniqueSet would return {a, b, c}. Note: this is an @@ -96,7 +97,7 @@
  • "Externalized" LRUMap 1.0 Objects cannot be read by LRUMap 2.0.
- +

New features:

  • True LRU algorithm.
  • @@ -112,5 +113,42 @@ when the current size of the Map exceeds the new maximum size
- - + + +

BeanMap

+ +

BeanMap's entrySet() now properly returns a set containing Map.Entry +objects. Previously, entrySet() was equivalent to keySet() (returns a set of +the readable properties) and there was no mechanism to retrieve all of the +readable properties along with their values. Additionally, the BeanMap clone +method has been revamped to work better for subclasses.

+ +

BeanMap 2.0 compatibility changes:

+
    + +
  • BeanMap's clone() method now declares it throws + CloneNotSupportedException. This allows subclasses of BeanMap to not require + being Cloneable and facilitates subclasses that wish to be cloneable (allows + the subclass to call super.clone() and have it return an instance of the + child rather than the parent).
  • + +
  • If a BeanMap is not cloneable because a new instance of the underlying + bean cannot be constructed, a CloneNotSupportedException is thrown rather + than an UnsupportedOperationException or other RuntimeException.
  • + +
  • BeanMap's entrySet() method now returns a set of Map.Entry objects rather + than the set of readable properties. To retrieve a set of readable + properties, use keySet() instead.
  • + +
+ +

Bugs fixed:

+
    + +
  • If no bean is set in the BeanMap, or setBean(Object) was called with a + null argument, many BeanMap methods threw NullPointerExceptions. These have + been fixed to properly handle the case where there is no bean established in + the map.
  • + +
+ -- To unsubscribe, e-mail: For additional commands, e-mail: