Code example for Vector

Methods: isEmptylastElementsetSizesize

0
   */ 
  public synchronized DTMIterator getInstanceOrThrow() 
    throws CloneNotSupportedException 
  { 
    // Check if the pool is empty. 
    if (m_freeStack.isEmpty())
    { 
 
      // Create a new object if so. 
      return (DTMIterator)m_orig.clone();
    } 
    else 
    { 
      // Remove object from end of free pool. 
      DTMIterator result = (DTMIterator)m_freeStack.lastElement();
 
      m_freeStack.setSize(m_freeStack.size() - 1);
 
      return result;
    } 
  } 
   
Contextual code suggestions in your IDE  Get Codota for Java