add method

bool add (E element)

Implementation

bool add(E element) {
  int compare = _splay(element);
  if (compare == 0) return false;
  _addNewRoot(new _SplayTreeNode(element), compare);
  return true;
}