@ SafeVarargs public static < K , V > Map < K , V > map ( final Entry < ? extends K , ? extends V > ... entries ) { final Map < K , V > map = new LinkedHashMap < K , V > ( entries . length ) ; for ( final Entry < ? extends K , ? extends V > entry : entries ) { map . put ( entry . getKey ( ) , entry . getValue ( ) ) ; } return map ; }
A convenient way of creating a map on the fly .