/** * Clears the stack. */ public void clear() { _list.clear(); }
/** {@inheritDoc} */ public void clear() { clear( DEFAULT_CAPACITY ); }
/** {@inheritDoc} */ public boolean removeAll( TShortCollection collection ) { if ( collection == this ) { clear(); return true; } boolean changed = false; TShortIterator iter = collection.iterator(); while ( iter.hasNext() ) { short element = iter.next(); if ( remove( element ) ) { changed = true; } } return changed; }
/** * Clears the stack. */ public void clear() { _list.clear(); }
/** * Clears the stack. */ public void clear() { _list.clear(); }
/** * Clears the stack. */ @Override public void clear() { _list.clear(); }
/** {@inheritDoc} */ @Override public void clear() { clear( DEFAULT_CAPACITY ); }
/** * Clears the stack. */ public void clear() { _list.clear(); }
/** {@inheritDoc} */ public void clear() { clear( DEFAULT_CAPACITY ); }
/** {@inheritDoc} */ public void clear() { clear( DEFAULT_CAPACITY ); }
/** {@inheritDoc} */ public boolean removeAll( TShortCollection collection ) { if ( collection == this ) { clear(); return true; } boolean changed = false; TShortIterator iter = collection.iterator(); while ( iter.hasNext() ) { short element = iter.next(); if ( remove( element ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean removeAll( TShortCollection collection ) { if ( collection == this ) { clear(); return true; } boolean changed = false; TShortIterator iter = collection.iterator(); while ( iter.hasNext() ) { short element = iter.next(); if ( remove( element ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ public boolean removeAll( TShortCollection collection ) { if ( collection == this ) { clear(); return true; } boolean changed = false; TShortIterator iter = collection.iterator(); while ( iter.hasNext() ) { short element = iter.next(); if ( remove( element ) ) { changed = true; } } return changed; }
/** {@inheritDoc} */ @Override public boolean removeAll( TShortCollection collection ) { if ( collection == this ) { clear(); return true; } boolean changed = false; TShortIterator iter = collection.iterator(); while ( iter.hasNext() ) { short element = iter.next(); if ( remove( element ) ) { changed = true; } } return changed; }