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/src/java/org/apache/commons/collections LRUMap.java
Date Tue, 16 Apr 2002 21:15:14 GMT
morgand     02/04/16 14:15:13

  Modified:    collections/src/java/org/apache/commons/collections
                        LRUMap.java
  Log:
  fixed strage javadoc wording per patch
  
  Revision  Changes    Path
  1.13      +27 -27    jakarta-commons/collections/src/java/org/apache/commons/collections/LRUMap.java
  
  Index: LRUMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/LRUMap.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- LRUMap.java	19 Mar 2002 01:18:09 -0000	1.12
  +++ LRUMap.java	16 Apr 2002 21:15:13 -0000	1.13
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/LRUMap.java,v
1.12 2002/03/19 01:18:09 jefft Exp $
  - * $Revision: 1.12 $
  - * $Date: 2002/03/19 01:18:09 $
  + * $Header: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/LRUMap.java,v
1.13 2002/04/16 21:15:13 morgand Exp $
  + * $Revision: 1.13 $
  + * $Date: 2002/04/16 21:15:13 $
    *
    * ====================================================================
    *
  @@ -68,30 +68,30 @@
   import java.io.ObjectOutputStream;
   import java.util.Iterator;
   
  -/** <p>
  -  * An implementation of a Map which has a maximum size and uses a Least Recently Used
  -  * algorithm to remove items from the Map when the maximum size is reached and new items
are added.
  -  * </p>
  -  *
  -  * <p>
  -  * A synchronized version can be obtained with:
  -  * <code>Collections.synchronizedMap( theMapToSynchronize )</code>
  -  * If it will be accessed by multiple threads, you _must_ synchronize access 
  -  * to this Map.  Even concurrent get(Object) operations produce indeterminate
  -  * behaviour.
  -  * </p>
  -  *
  -  * <p>
  -  * Unlike that Collections 1.0 version, this version of LRUMap does use a true
  -  * LRU algorithm.  The keys for all gets and puts are moved to the front of
  -  * the list.  LRUMap is now a subclass of SequencedHashMap, and the "LRU"
  -  * key is now equivalent to LRUMap.getFirst().
  -  * </p>
  -  * 
  -  * 
  -  * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
  -  * @author <a href="mailto:morgand@apache.org">Morgan Delagrange</a>
  -  */
  +/**
  + * <p>
  + * An implementation of a Map which has a maximum size and uses a Least Recently Used
  + * algorithm to remove items from the Map when the maximum size is reached and new items
are added.
  + * </p>
  + * 
  + * <p>
  + * A synchronized version can be obtained with:
  + * <code>Collections.synchronizedMap( theMapToSynchronize )</code>
  + * If it will be accessed by multiple threads, you _must_ synchronize access
  + * to this Map.  Even concurrent get(Object) operations produce indeterminate
  + * behaviour.
  + * </p>
  + * 
  + * <p>
  + * Unlike the Collections 1.0 version, this version of LRUMap does use a true
  + * LRU algorithm.  The keys for all gets and puts are moved to the front of
  + * the list.  LRUMap is now a subclass of SequencedHashMap, and the "LRU"
  + * key is now equivalent to LRUMap.getFirst().
  + * </p>
  + * 
  + * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
  + * @author <a href="mailto:morgand@apache.org">Morgan Delagrange</a>
  + */
   public class LRUMap extends SequencedHashMap implements Externalizable {
           
       private int maximumSize = 0;
  
  
  

--
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