moved to RELEASE-NOTES-2.0.html
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130611 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
363300f587
commit
a3e632a65f
|
@ -1,48 +0,0 @@
|
||||||
RELEASE NOTES ROUGH DRAFT:
|
|
||||||
--------------------------
|
|
||||||
|
|
||||||
|
|
||||||
NEW COLLECTIONS:
|
|
||||||
----------------
|
|
||||||
|
|
||||||
<paste definitions of new collections from STATUS file here>
|
|
||||||
|
|
||||||
|
|
||||||
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. Instead, use
|
|
||||||
remove(getFirstKey()).
|
|
||||||
- "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
|
|
||||||
|
|
||||||
ArrayIterator
|
|
||||||
-------------
|
|
||||||
|
|
||||||
Bugs fixed:
|
|
||||||
- ArrayIterator can now iterate over arrays of primatives
|
|
Loading…
Reference in New Issue