public void clear(){
  final ReentrantLock lock=this.lock;
  lock.lock();
  try {
    setArray(new Object[0]);
  }
  finally {
    lock.unlock();
  }
}

public void clear ( ) { final ReentrantLock lock = this . lock ; lock . lock ( ) ; try { setArray ( new Object [ 0 ] ) ; } finally { lock . unlock ( ) ; } }
removes all of the elements from this list . the list will be empty after this call returns .
