Skip to content

Instantly share code, notes, and snippets.

@dain
Created February 5, 2014 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dain/8818242 to your computer and use it in GitHub Desktop.
Save dain/8818242 to your computer and use it in GitHub Desktop.
checkNotNull(outputs, "outputs is null");
this.outputs = ImmutableMap.copyOf(Maps.transformValues(outputs, new Function<Set<?>, Set<?>>() {
@Override
public Set<?> apply(@Nullable Set<?> input)
{
return ImmutableSet.copyOf(input);
}
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment