private static Set<String> parseDelimitedParameters(Set<String> parametersToParse){
  Set<String> parsedParameters=new LinkedHashSet<>();
  if (parametersToParse != null && !parametersToParse.isEmpty()) {
    for (    String parameterToParse : parametersToParse) {
      parsedParameters.addAll(Arrays.asList(parameterToParse.split(JSON_API_PARAM_DELIMITER)));
    }
  }
  return parsedParameters;
}

private static Set < String > parseDelimitedParameters ( Set < String > parametersToParse ) { Set < String > parsedParameters = new LinkedHashSet < > ( ) ; if ( parametersToParse != null && ! parametersToParse . isEmpty ( ) ) { for ( String parameterToParse : parametersToParse ) { parsedParameters . addAll ( Arrays . asList ( parameterToParse . split ( JSON_API_PARAM_DELIMITER ) ) ) ; } } return parsedParameters ; }
returns a list of all of the strings contained in parameterstoparse . if any of the strings contained in parameterstoparse is a comma - delimited list , that string will be split into substrings and each substring will be added to the returned set ( in place of the delimited list ) .
