private void AddElement(long element) { if (_removed.Empty || !_removed.remove(element)) { _added.add(element); } }
private bool RemoveElement(long element) { if (!_added.Empty && _added.remove(element)) { return(true); } return(_removed.add(element)); }