Update of 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher/cache
In directory james.mmbase.org:/tmp/cvs-serv17405

Modified Files:
        DefaultCache.java 
Log Message:
CMSC-899,Check and improve all lists according to guideline,add Javadoc comment


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher/cache
See also: http://www.mmbase.org/jira/browse/CMSC-899


Index: DefaultCache.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/publisher/cache/DefaultCache.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- DefaultCache.java   23 Sep 2008 05:38:11 -0000      1.8
+++ DefaultCache.java   23 Sep 2008 06:03:31 -0000      1.9
@@ -33,16 +33,19 @@
       this.time = time;
    }
 
-   /** add
-    * @see 
com.finalist.newsletter.publisher.cache.ICache#add(java.lang.Object, 
java.lang.Object)
+   /**
+    * @param key used to find value
+    * @param value store the infoBean
     */
    public void add(Object key, Object value) {
       add(key, value, time);
    }
 
   
-   /**add
-    * @see 
com.finalist.newsletter.publisher.cache.ICache#add(java.lang.Object, 
java.lang.Object, long)
+   /**
+    * @param key used to find value
+    * @param value store the infoBean
+    * @param slidingExpiration the life of infoBean
     */
    public void add(Object key, Object value, long slidingExpiration) {
       if (slidingExpiration != 0) {
@@ -51,8 +54,9 @@
       }
    }
 
-   /** contains
-    * @see 
com.finalist.newsletter.publisher.cache.ICache#contains(java.lang.Object)
+   /**
+    * @param key used mark the infoBean
+    * @return boolean see it contains
     */
    public boolean contains(Object key) {
       if (datas.containsKey(key)) {
@@ -62,8 +66,9 @@
    }
 
    
-   /** get
-    * @see com.finalist.newsletter.publisher.cache.ICache#get(java.lang.Object)
+   /**
+    * @param key used get the value
+    * @return Object is the infoBean
     */
    public Object get(Object key) {
       if (datas.containsKey(key)) {
@@ -75,16 +80,16 @@
       return null;
    }
 
-   /** remove
-    * @see 
com.finalist.newsletter.publisher.cache.ICache#remove(java.lang.Object)
+   /**
+    * @param key remove 
     */
    public void remove(Object key) {
       datas.remove(key);
    }
 
    
-   /** removeAll
-    * @see com.finalist.newsletter.publisher.cache.ICache#removeAll()
+   /**
+    * remove all exited infoBean in the cache
     */
    public void removeAll() {
    }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to