joinSets method

Set<String> joinSets(
  1. Set<String> main,
  2. Set<String> secondary
)
inherited

Takes two Set objects and return the concatenation of both, disregarding the empty values using the method AbstractAnalyzer.valueIsEmpty

Implementation

Set<String> joinSets(
  Set<String> main,
  Set<String> secondary,
) {
  main.addAll(secondary.where((element) => !valueIsEmpty(element)));
  return main;
}