sboag       01/06/23 18:20:24

  Modified:    java/src/org/apache/xml/utils NodeVector.java
  Log:
  Added RemoveAllNoClear, method which resets
  the size of the vector to zero, but doesn't
  null out the items.
  
  Revision  Changes    Path
  1.5       +12 -0     xml-xalan/java/src/org/apache/xml/utils/NodeVector.java
  
  Index: NodeVector.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/NodeVector.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- NodeVector.java   2001/06/12 19:15:59     1.4
  +++ NodeVector.java   2001/06/24 01:20:23     1.5
  @@ -473,6 +473,18 @@
   
       m_firstFree = 0;
     }
  +  
  +  /**
  +   * Set the length to zero, but don't clear the array.
  +   */
  +  public void RemoveAllNoClear()
  +  {
  +
  +    if (null == m_map)
  +      return;
  +
  +    m_firstFree = 0;
  +  }
   
     /**
      * Removes the first occurrence of the argument from this vector.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to