operator + method

NotifiableSet<E> operator +(
  1. Iterable<E> other
)

Creates a new NotifiableSet that contains the elements of this set and the elements of other in that order.

Implementation

NotifiableSet<E> operator +(Iterable<E> other) {
  NotifiableSet<E> newSet = NotifiableSet<E>.of(_values);
  newSet.addAll(other);
  return newSet;
}