src/main/java/tinyrtpl/Data.java
public void put(Object key, Object value) {
        if (this.type != 5 && this.type != 6) return;
        int kType = Data.typeOf(key);
        if (kType < 1 || kType > 4) return;
        String keyStr = Data.stringOf(key, kType);
        if (this.type == 5) {
            if (kType == 4) {
                int dotPos = keyStr.indexOf('.');
                if (dotPos > 0) {
                    Data.dataOf(this.vmap.get(keyStr.substring(0, dotPos))).put(keyStr.substring(dotPos + 1), value);
                    return;
                }
            }
            this.vmap.put(keyStr, Data.dataOf(value));
        } else {
            int index = Integer.parseInt(keyStr);
            int len = this.varray.size();
            if (index >= len || index < 0) return;
            this.varray.set(index, Data.dataOf(value));
        }
    }
/**
     * Put a key-value pair into the data if this is a map;
     * or set a index-specific element if this is an array.
     * @param key: key
     * @param value: value
     */
Put a key-value pair into the data if this is a map;
or set a index-specific element if this is an array.
@param key: key
@param value: value
Put a key - value pair into the data if this is a map ; or set a index - specific element if this is an array . @param key : key @param value : value
public void put(Object key, Object value) {
        if (this.type != 5 && this.type != 6) return;
        int kType = Data.typeOf(key);
        if (kType < 1 || kType > 4) return;
        String keyStr = Data.stringOf(key, kType);
        if (this.type == 5) {
            if (kType == 4) {
                int dotPos = keyStr.indexOf('.');
                if (dotPos > 0) {
                    Data.dataOf(this.vmap.get(keyStr.substring(0, dotPos))).put(keyStr.substring(dotPos + 1), value);
                    return;
                }
            }
            this.vmap.put(keyStr, Data.dataOf(value));
        } else {
            int index = Integer.parseInt(keyStr);
            int len = this.varray.size();
            if (index >= len || index < 0) return;
            this.varray.set(index, Data.dataOf(value));
        }
    }
public void put ( Object key , Object value ) { if ( this . type != 5 && this . type != 6 ) return ; int kType = Data . typeOf ( key ) ; if ( kType < 1 || kType > 4 ) return ; String keyStr = Data . stringOf ( key , kType ) ; if ( this . type == 5 ) { if ( kType == 4 ) { int dotPos = keyStr . indexOf ( '.' ) ; if ( dotPos > 0 ) { Data . dataOf ( this . vmap . get ( keyStr . substring ( 0 , dotPos ) ) ) . put ( keyStr . substring ( dotPos + 1 ) , value ) ; return ; } } this . vmap . put ( keyStr , Data . dataOf ( value ) ) ; } else { int index = Integer . parseInt ( keyStr ) ; int len = this . varray . size ( ) ; if ( index >= len || index < 0 ) return ; this . varray . set ( index , Data . dataOf ( value ) ) ; } }
Put a key-value pair into the data if this is a map;
 or set a index-specific element if this is an array.
Put a key - value pair into the data if this is a map ; or set a index - specific element if this is an array .