1
2
public class MapFactory {
static public <K, V> Map<K,V> createOf(K key, V value){
Trying to wrap the creation of maps in order to use a more intuitive interface.
InitMap taken from the post http://octodecillion.com/blog/java-fluent-map-inline-initialization/#sourceSection.
InitMap taken from the post http://octodecillion.com/blog/java-fluent-map-inline-initialization/#sourceSection.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.