clear method

void clear()

Clears the list of all elements.

Implementation

void clear() {
  final int length = this.length;
  for (int i = 0; i < length; i++) {
    _removeAt(i);
  }
}