Code example for Collection

Methods: clear

0
  public boolean retainAll(Collection<?> collection) {
    return delegate().retainAll(collection);
  } 
 
  public void clear() { 
    delegate().clear();
  } 
} 
Connect your IDE to all the code out there  Get Codota for Java