public static Set<String> asSet(String[] filter) {
    LinkedHashSet<String> linkedHashSet = new LinkedHashSet<>(filter.length);
    Collections.addAll(linkedHashSet, filter);
    return linkedHashSet;
  }
The ArrayUtils class is an abstract utility class for working with Object arrays.
<p>

@see java.util.Arrays
@since GemFire 8.0
geode-web-api/src/main/java/org/apache/geode/rest/internal/web/util/ArrayUtils.java