From: <dr...@us...> - 2003-06-12 00:48:16
|
Update of /cvsroot/webmacro/webmacro/src/org/opendoors/cache In directory sc8-pr-cvs1:/tmp/cvs-serv6675/src/org/opendoors/cache Modified Files: Cache.java UpdateableCache.java Log Message: If this doesn't drive our SF "activity" stats through the roof, I don't know what will. Mass re-formatting of all code, following (to the best of my interpertation) the Sun (w/ jakarta tweaks) coding style guidelines defined here: http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html and here: http://jakarta.apache.org/turbine/common/code-standards.html I did this reformatting with IDEA 3.0.5, and I am going to commit the style configuration for IDEA (if I can find it). Index: Cache.java =================================================================== RCS file: /cvsroot/webmacro/webmacro/src/org/opendoors/cache/Cache.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Cache.java 11 Jun 2002 17:43:20 -0000 1.3 --- Cache.java 12 Jun 2003 00:47:42 -0000 1.4 *************** *** 25,72 **** * @author Lane Sharman */ ! public interface Cache { ! /** ! * Invalidate an object in the cache according ! * to the update strategy. ! */ ! public void invalidate(Object key); ! /** ! * Invalidates all the objects in the cache in one shot. ! * <p> ! * The action is performed according to the update strategy ! * of the implementation. ! */ ! public void invalidateAll(); ! /** ! * Put an object in the cache possibly ! * updating and replacing an existing value. ! * <p> ! * Note: some implementations elect to defer ! * this operation so the element may not ! * be immediately present. ! */ ! public void put(Object key, Object value); ! /** ! * Gets a value from the cache. ! * <p> ! * Returning null reports that the element ! * cannot be found or regenerate with the key ! * provided. ! */ ! public Object get(Object key); ! /** ! * Returns all the values in the cache. ! */ ! public Object[] values(); ! /** ! * Returns all the keys in the cache. ! */ ! public Object[] keys(); } --- 25,73 ---- * @author Lane Sharman */ ! public interface Cache ! { ! /** ! * Invalidate an object in the cache according ! * to the update strategy. ! */ ! public void invalidate (Object key); ! /** ! * Invalidates all the objects in the cache in one shot. ! * <p> ! * The action is performed according to the update strategy ! * of the implementation. ! */ ! public void invalidateAll (); ! /** ! * Put an object in the cache possibly ! * updating and replacing an existing value. ! * <p> ! * Note: some implementations elect to defer ! * this operation so the element may not ! * be immediately present. ! */ ! public void put (Object key, Object value); ! /** ! * Gets a value from the cache. ! * <p> ! * Returning null reports that the element ! * cannot be found or regenerate with the key ! * provided. ! */ ! public Object get (Object key); ! /** ! * Returns all the values in the cache. ! */ ! public Object[] values (); ! /** ! * Returns all the keys in the cache. ! */ ! public Object[] keys (); } Index: UpdateableCache.java =================================================================== RCS file: /cvsroot/webmacro/webmacro/src/org/opendoors/cache/UpdateableCache.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** UpdateableCache.java 11 Jun 2002 17:43:20 -0000 1.3 --- UpdateableCache.java 12 Jun 2003 00:47:43 -0000 1.4 *************** *** 20,32 **** * recent mutations to the cache. */ ! public interface UpdateableCache extends Cache { ! /** ! * Updates the cache. ! * <p> ! * Upon completion, the cache is up to date ! * w/respect to all pending updates. ! */ ! public void update(); } --- 20,33 ---- * recent mutations to the cache. */ ! public interface UpdateableCache extends Cache ! { ! /** ! * Updates the cache. ! * <p> ! * Upon completion, the cache is up to date ! * w/respect to all pending updates. ! */ ! public void update (); } |