Author: asmuts Date: Fri Dec 5 12:11:36 2008 New Revision: 723845 URL: http://svn.apache.org/viewvc?rev=723845&view=rev Log: fixing javadocs
Modified: jakarta/jcs/trunk/src/test/org/apache/jcs/engine/memory/MockMemoryCache.java Modified: jakarta/jcs/trunk/src/test/org/apache/jcs/engine/memory/MockMemoryCache.java URL: http://svn.apache.org/viewvc/jakarta/jcs/trunk/src/test/org/apache/jcs/engine/memory/MockMemoryCache.java?rev=723845&r1=723844&r2=723845&view=diff ============================================================================== --- jakarta/jcs/trunk/src/test/org/apache/jcs/engine/memory/MockMemoryCache.java (original) +++ jakarta/jcs/trunk/src/test/org/apache/jcs/engine/memory/MockMemoryCache.java Fri Dec 5 12:11:36 2008 @@ -86,33 +86,52 @@ /** @return null */ public Iterator getIterator() { - // return return null; } + /** + * @return map.keySet().toArray( */ public Object[] getKeyArray() { return map.keySet().toArray(); } + /** + * @param key + * @return map.remove( key ) != null + * @throws IOException + */ public boolean remove( Serializable key ) throws IOException { return map.remove( key ) != null; } + /** + * @throws IOException + */ public void removeAll() throws IOException { map.clear(); } + /** + * @param key + * @return (ICacheElement) map.get( key ) + * @throws IOException + */ public ICacheElement get( Serializable key ) throws IOException { return (ICacheElement) map.get( key ); } + /** + * @param keys + * @return elements + * @throws IOException + */ public Map getMultiple( Set keys ) throws IOException { @@ -138,12 +157,21 @@ return elements; } + /** + * @param key + * @return (ICacheElement) map.get( key ) + * @throws IOException + */ public ICacheElement getQuiet( Serializable key ) throws IOException { return (ICacheElement) map.get( key ); } + /** + * @param ce + * @throws IOException + */ public void waterfal( ICacheElement ce ) throws IOException { @@ -171,21 +199,24 @@ return cacheAttr; } - /* - * (non-Javadoc) - * - * @see org.apache.jcs.engine.memory.MemoryCache#setCacheAttributes(org.apache.jcs.engine.behavior.ICompositeCacheAttributes) + /** + * @param cattr */ public void setCacheAttributes( ICompositeCacheAttributes cattr ) { this.cacheAttr = cattr; } + /** @return null */ public CompositeCache getCompositeCache() { return null; } + /** + * @param group + * @return null + */ public Set getGroupKeys( String group ) { return null; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]