[jboss-cvs] JBossCache/src/org/jboss/cache ...
Manik Surtani
msurtani at jboss.com
Tue Oct 31 18:19:56 EST 2006
User: msurtani
Date: 06/10/31 18:19:56
Modified: src/org/jboss/cache Cache.java TreeCacheProxyImpl.java
Log:
Remove returns old value
Revision Changes Path
1.12 +2 -1 JBossCache/src/org/jboss/cache/Cache.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Cache.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/Cache.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- Cache.java 18 Oct 2006 11:07:54 -0000 1.11
+++ Cache.java 31 Oct 2006 23:19:56 -0000 1.12
@@ -110,8 +110,9 @@
*
* @param fqn <b><i>absolute</i></b> {@link Fqn} to the {@link Node} to be accessed.
* @param key
+ * @return Returns the old value contained under this key. Null if key doesn't exist.
*/
- void remove(Fqn fqn, Object key);
+ Object remove(Fqn fqn, Object key);
/**
* Removes a node based on the (absolute) Fqn passed in.*
1.45 +2 -2 JBossCache/src/org/jboss/cache/TreeCacheProxyImpl.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: TreeCacheProxyImpl.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/TreeCacheProxyImpl.java,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -b -r1.44 -r1.45
--- TreeCacheProxyImpl.java 18 Oct 2006 11:59:16 -0000 1.44
+++ TreeCacheProxyImpl.java 31 Oct 2006 23:19:56 -0000 1.45
@@ -224,9 +224,9 @@
treeCache.put(fqn, data);
}
- public void remove(Fqn fqn, Object key)
+ public Object remove(Fqn fqn, Object key)
{
- treeCache.remove(fqn, key);
+ return treeCache.remove(fqn, key);
}
public Object get(Fqn fqn, Object key)
More information about the jboss-cvs-commits
mailing list