HashMap < K , V > function ( Object ... arg0 ) { assert arg0 . length % 2 == 0 : "srini_string" ; HashMap < K , V > loc0 = new HashMap < K , V > ( ) ; for ( int loc1 = 0 ; loc1 < arg0 . length ; ++ loc1 ) { loc0 . put ( ( K ) arg0 [ loc1 ] , ( V ) arg0 [ ++ loc1 ] ) ; } return loc0 ; }
single-line construction method for a hashmap . usage example : map mymap = maputil.makehashmap `` a '' , 1 , `` b '' , 345 , `` c '' , 7 ; concode_field_sep PlaceHolder placeHolder concode_field_sep Map<K,V> makeFixHashMap concode_elem_sep LinkedHashMap<K,V> makeLinkedMap