Skip to content

Instantly share code, notes, and snippets.

@tobyclemson
Created June 4, 2013 22:14
Show Gist options
  • Save tobyclemson/5710084 to your computer and use it in GitHub Desktop.
Save tobyclemson/5710084 to your computer and use it in GitHub Desktop.
Example of custom map implementation using Funk builders.
Map<String, Integer> orderedMap = mapBuilderWithKeyValuePair("first", 1)
.withKeyValuePair("second", 2)
.withKeyValuePair("third", 3)
.build(LinkedHashMap.class);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment