From a87ee3a6f51ec8b55d7da11879bbb42f8944bf37 Mon Sep 17 00:00:00 2001 From: Morgan James Delagrange Date: Thu, 21 Feb 2002 22:20:55 +0000 Subject: [PATCH] release notes portion of the release 2.0 status git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130551 13f79535-47bb-0310-9956-ffa450edef68 --- RELEASE-NOTES-2.0.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 RELEASE-NOTES-2.0.txt diff --git a/RELEASE-NOTES-2.0.txt b/RELEASE-NOTES-2.0.txt new file mode 100644 index 000000000..c110092cf --- /dev/null +++ b/RELEASE-NOTES-2.0.txt @@ -0,0 +1,42 @@ +RELEASE NOTES ROUGH DRAFT: +-------------------------- + + +NEW COLLECTIONS: +---------------- + + + + +CHANGED COLLECTIONS: +-------------------- + +LRUMap +------ + +LRUMap has been reimplemented as a subclass of +SynchronizedHashMap. The new implementation of +LRUMap should be faster, and it also offers true LRU +capabilities; now any get(Object) or +put(Object,Object) from this collection +promotes the key to the Most Recently Used position. + +LRUMap 2.0 compatibility changes: + - LRUMap can no longer be cast to a HashMap. + - The removeLRU() method now has a different + signature, and is no longer public. There is + no direct replacement for this method. + - "Externalized" LRUMap 1.0 Objects cannot be + read by LRUMap 2.0. + +New features: + - True LRU algorithm. + - New methods from SequencedHashMap superclass. + - processRemovedLRU(Object key, Object value) method + allows subclasses to perform custom actions on + keys and values that are expunged from the Map. + +Bugs fixed: + - calling setMaximumSize(int) will remove excess LRUs + when the current size of the Map exceeds the new + maximum size