base/common/src/main/com/thesett/common/reflect/DirectMemento.java
public void put(Class cls, String attr, Object val)
    {
        /*log.fine("public void put(Class cls, String attr, Object val): called");*/
        /*log.fine("class name is " + cls.getName());*/
        /*log.fine("attribute is " + attr);*/
        /*log.fine("value to set is " + val);*/

        HashMap map;

        // Check that the cache for the class exists in the cache.
        if (values.containsKey(cls))
        {
            // Get the cache of field for the class.
            map = (HashMap) values.get(cls);
        }
        else
        {
            // The class does not already exist in the cache to create a new cache for its fields.
            map = new HashMap();

            // Cache the new field cache against the class.
            values.put(cls, map);
        }

        // Store the attribute in the field cache for the class.
        map.put(attr, val);
    }
public void put(Class cls, String attr, Object val)
    {
        /*log.fine("public void put(Class cls, String attr, Object val): called");*/
        /*log.fine("class name is " + cls.getName());*/
        /*log.fine("attribute is " + attr);*/
        /*log.fine("value to set is " + val);*/

        HashMap map;

        // Check that the cache for the class exists in the cache.
        if (values.containsKey(cls))
        {
            // Get the cache of field for the class.
            map = (HashMap) values.get(cls);
        }
        else
        {
            // The class does not already exist in the cache to create a new cache for its fields.
            map = new HashMap();

            // Cache the new field cache against the class.
            values.put(cls, map);
        }

        // Store the attribute in the field cache for the class.
        map.put(attr, val);
    }
public void put ( Class cls , String attr , Object val ) { /*log.fine("public void put(Class cls, String attr, Object val): called");*/ /*log.fine("class name is " + cls.getName());*/ /*log.fine("attribute is " + attr);*/ /*log.fine("value to set is " + val);*/ HashMap map ; // Check that the cache for the class exists in the cache. if ( values . containsKey ( cls ) ) { // Get the cache of field for the class. map = ( HashMap ) values . get ( cls ) ; } else { // The class does not already exist in the cache to create a new cache for its fields. map = new HashMap ( ) ; // Cache the new field cache against the class. values . put ( cls , map ) ; } // Store the attribute in the field cache for the class. map . put ( attr , val ) ; }
Places the specified value into the memento based on the field's declaring class and name.

@param cls  The class in which the field is declared.
@param attr The name of the attribute.
@param val  The value to store into this memento.
Places the specified value into the memento based on the field s declaring class and name .