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