addIfNotContainsWhere method

void addIfNotContainsWhere(
  1. ReplaceValidator<T> validator,
  2. T element
)

Implementation

void addIfNotContainsWhere(ReplaceValidator<T> validator, T element) {
  if (!containsWhere(validator)) add(element);
}