src/main/java/tinyrtpl/Data.java
public static Data dataOf(Object obj) {
//        if(Data.className.equals(obj.getClass().getName())) return (Data) obj; // obj is already a Data.
        if(obj instanceof Data) return (Data) obj; // obj is already a Data.
        return new Data(obj);
    }
/**
     * Return a Data instance of a given Object.
     * @param obj: an Object that can be a Data or anything else
     * @return a Data instance
     */
Return a Data instance of a given Object.
@param obj: an Object that can be a Data or anything else
@return a Data instance
Return a Data instance of a given Object . @param obj : an Object that can be a Data or anything else @return a Data instance
public static Data dataOf(Object obj) {
        if(obj instanceof Data) return (Data) obj; 
        return new Data(obj);
    }
public static Data dataOf ( Object obj ) { if ( obj instanceof Data ) return ( Data ) obj ; return new Data ( obj ) ; }
Return a Data instance of a given Object.
Return a Data instance of a given Object .
//        if(Data.className.equals(obj.getClass().getName())) return (Data) obj; // obj is already a Data. // obj is already a Data.