[jboss-cvs] JBossCache/src/org/jboss/cache ...

Manik Surtani manik at jboss.org
Mon Jul 9 09:14:26 EDT 2007


  User: msurtani
  Date: 07/07/09 09:14:26

  Modified:    src/org/jboss/cache   Node.java UnversionedNode.java
  Log:
  JBCACHE-1124
  
  Revision  Changes    Path
  1.65      +9 -0      JBossCache/src/org/jboss/cache/Node.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Node.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/Node.java,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -b -r1.64 -r1.65
  --- Node.java	11 Jun 2007 15:06:02 -0000	1.64
  +++ Node.java	9 Jul 2007 13:14:26 -0000	1.65
  @@ -260,4 +260,13 @@
       * @return true if the child node denoted by the relative {@link Fqn} passed in exists.
       */
      boolean hasChild(Fqn<?> f);
  +
  +   /**
  +    * Returns true if the child node denoted by the Object name passed in exists.
  +    *
  +    * @param o name of the child, relative to the current node
  +    * @return true if the child node denoted by the name passed in exists.
  +    */
  +   boolean hasChild(Object o);
  +
   }
  
  
  
  1.34      +5 -0      JBossCache/src/org/jboss/cache/UnversionedNode.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: UnversionedNode.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/UnversionedNode.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -b -r1.33 -r1.34
  --- UnversionedNode.java	2 Jul 2007 10:21:25 -0000	1.33
  +++ UnversionedNode.java	9 Jul 2007 13:14:26 -0000	1.34
  @@ -434,6 +434,11 @@
         return getChild(f) != null;
      }
   
  +   public boolean hasChild(Object o)
  +   {
  +      return getChild(o) != null;
  +   }
  +
      public V putIfAbsent(K k, V v)
      {
         // make sure this is atomic.  Not hugely performant at the moment (should use the locking interceptors) but for now ...
  
  
  



More information about the jboss-cvs-commits mailing list