add abstract method

bool add(
  1. T element
)

Adds the specified element to the collection.

@return true if the element has been added, false if the collection does not support duplicates and the element is already contained in the collection.

Implementation

bool add(T element);