public void clear(){
  int index1=delegate.size() - 1;
  delegate.removeAllElements();
  if (index1 >= 0) {
    fireIntervalRemoved(this,0,index1);
  }
}

public void clear ( ) { int index1 = delegate . size ( ) - 1 ; delegate . removeAllElements ( ) ; if ( index1 >= 0 ) { fireIntervalRemoved ( this , 0 , index1 ) ; } }
removes all of the elements from this list . the list will be empty after this call returns ( unless it throws an exception ) .
