src/main/java/tinyrtpl/Data.java
private static HashMap<String, Data> dataMapOf(HashMap<Object, Object> map) {
        if(map == null) return null;
        HashMap<String, Data> dmap = new HashMap<String, Data>();
        Iterator it = map.entrySet().iterator();
        int vType = -1;
        while (it.hasNext()) {
            Map.Entry e = (Map.Entry) it.next();
            vType = Data.typeOf(e.getValue());
            dmap.put(e.getKey().toString(), new Data(e.getValue(), vType));
        }
        return dmap;
    }
/**
     * Convert the types of keys and values in a common HashMap to <String, Data>.
     * @param map: a common HashMap<Object, Object>
     * @return a HashMap<String, Data>
     */
Convert the types of keys and values in a common HashMap to .
@param map: a common HashMap
@return a HashMap
Convert the types of keys and values in a common HashMap to . @param map : a common HashMap @return a HashMap
private static HashMap<String, Data> dataMapOf(HashMap<Object, Object> map) {
        if(map == null) return null;
        HashMap<String, Data> dmap = new HashMap<String, Data>();
        Iterator it = map.entrySet().iterator();
        int vType = -1;
        while (it.hasNext()) {
            Map.Entry e = (Map.Entry) it.next();
            vType = Data.typeOf(e.getValue());
            dmap.put(e.getKey().toString(), new Data(e.getValue(), vType));
        }
        return dmap;
    }
private static HashMap < String , Data > dataMapOf ( HashMap < Object , Object > map ) { if ( map == null ) return null ; HashMap < String , Data > dmap = new HashMap < String , Data > ( ) ; Iterator it = map . entrySet ( ) . iterator ( ) ; int vType = - 1 ; while ( it . hasNext ( ) ) { Map . Entry e = ( Map . Entry ) it . next ( ) ; vType = Data . typeOf ( e . getValue ( ) ) ; dmap . put ( e . getKey ( ) . toString ( ) , new Data ( e . getValue ( ) , vType ) ) ; } return dmap ; }
Convert the types of keys and values in a common HashMap to <String, Data>.
Convert the types of keys and values in a common HashMap to <String Data > .