Skip to content

Instantly share code, notes, and snippets.

@baconpat
Created March 18, 2010 01:15
Show Gist options
  • Save baconpat/335939 to your computer and use it in GitHub Desktop.
Save baconpat/335939 to your computer and use it in GitHub Desktop.
public Map<String, String> getData(final Integer id) {
return new LazyImmutableMap<String, String>(new Callable<Map<String, String>() {
public Map<String, String> call() throws Exception {
return externalService.getSomeData(id);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment