Created
March 18, 2010 01:15
-
-
Save baconpat/335939 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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