commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-commons/collections RELEASE-NOTES-2.0.txt
Date Thu, 21 Feb 2002 22:20:55 GMT
morgand     02/02/21 14:20:55

  Added:       collections RELEASE-NOTES-2.0.txt
  Log:
  release notes portion of the release 2.0 status
  
  Revision  Changes    Path
  1.1                  jakarta-commons/collections/RELEASE-NOTES-2.0.txt
  
  Index: RELEASE-NOTES-2.0.txt
  ===================================================================
  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.  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
  
  
  

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


Mime
View raw message