src/main/java/tinyrtpl/Data.java
private static ArrayList<Data> dataArrayOf(List<Object> list) {
        if(list == null) return null;
        ArrayList<Data> darray = new ArrayList<Data>();
        if(list.size() == 0) return darray;
        int vType = -1;
        for(Object obj : list) {
            vType = Data.typeOf(obj);
            darray.add(new Data(obj, vType));
        }
        return darray;
    }
/**
     * Convert the types of elements in a common List to Data.
     * @param list: a common List of Object
     * @return an ArrayList of Data
     */
Convert the types of elements in a common List to Data.
@param list: a common List of Object
@return an ArrayList of Data
Convert the types of elements in a common List to Data . @param list : a common List of Object @return an ArrayList of Data
private static ArrayList<Data> dataArrayOf(List<Object> list) {
        if(list == null) return null;
        ArrayList<Data> darray = new ArrayList<Data>();
        if(list.size() == 0) return darray;
        int vType = -1;
        for(Object obj : list) {
            vType = Data.typeOf(obj);
            darray.add(new Data(obj, vType));
        }
        return darray;
    }
private static ArrayList < Data > dataArrayOf ( List < Object > list ) { if ( list == null ) return null ; ArrayList < Data > darray = new ArrayList < Data > ( ) ; if ( list . size ( ) == 0 ) return darray ; int vType = - 1 ; for ( Object obj : list ) { vType = Data . typeOf ( obj ) ; darray . add ( new Data ( obj , vType ) ) ; } return darray ; }
Convert the types of elements in a common List to Data.
Convert the types of elements in a common List to Data .