operator [] method

V operator [] (Object key)

Implementation

V operator [](Object key) {
  if (!_validKey(key)) return null;
  if (_root != null) {
    int comp = _splay(key);
    if (comp == 0) {
      return _root.value;
    }
  }
  return null;
}