src/main/java/tinyrtpl/Data.java
public static int typeOf(Object obj) {
        if (obj == null) return 0;
        if(obj instanceof Boolean) return 1;
        if(obj instanceof Integer) return 2;
        if(obj instanceof Float) return 3;
        if(obj instanceof Double) return 3;
        if(obj instanceof String) return 4;
        if(obj instanceof HashMap) return 5;
        if(obj instanceof List) return 6;
//        if(obj.getClass().isArray()) return 6;
//        if(Data.className.equals(obj.getClass().getName())) return 7;
        if(obj instanceof Data) return 7;
        return -1;
    }
/**
     * Return the type of a given Object.
     * @param obj: an Object
     * @return the inferred type represented by an integer
     */
Return the type of a given Object.
@param obj: an Object
@return the inferred type represented by an integer
Return the type of a given Object . @param obj : an Object @return the inferred type represented by an integer
public static int typeOf(Object obj) {
        if (obj == null) return 0;
        if(obj instanceof Boolean) return 1;
        if(obj instanceof Integer) return 2;
        if(obj instanceof Float) return 3;
        if(obj instanceof Double) return 3;
        if(obj instanceof String) return 4;
        if(obj instanceof HashMap) return 5;
        if(obj instanceof List) return 6;
        if(obj instanceof Data) return 7;
        return -1;
    }
public static int typeOf ( Object obj ) { if ( obj == null ) return 0 ; if ( obj instanceof Boolean ) return 1 ; if ( obj instanceof Integer ) return 2 ; if ( obj instanceof Float ) return 3 ; if ( obj instanceof Double ) return 3 ; if ( obj instanceof String ) return 4 ; if ( obj instanceof HashMap ) return 5 ; if ( obj instanceof List ) return 6 ; if ( obj instanceof Data ) return 7 ; return - 1 ; }
Return the type of a given Object.
Return the type of a given Object .
//        if(obj.getClass().isArray()) return 6; //        if(Data.className.equals(obj.getClass().getName())) return 7;