Skip to content

Instantly share code, notes, and snippets.

View johngmyers's full-sized avatar

John Gardiner Myers johngmyers

  • Proofpoint, Inc.
View GitHub Profile
@johngmyers
johngmyers / gist:6641152
Created September 20, 2013 17:45
Config value class that parses a comma-separated set
public static final class StringSet extends ForwardingSet<String>
{
private final Set<String> delegate;
private StringSet(Set<String> delegate)
{
this.delegate = ImmutableSet.copyOf(delegate);
}
public static StringSet of(String... strings)