base/common/src/main/com/thesett/common/reflect/DirectMemento.java
public Object get(Class cls, String attr)
    {
        HashMap map;

        // See if the class exists in the cache.
        if (!values.containsKey(cls))
        {
            // Class not in cache so return null.
            return null;
        }

        // Get the cache of field values for the class.
        map = (HashMap) values.get(cls);

        // Extract the specified field from the cache.
        return map.get(attr);
    }
public Object get(Class cls, String attr)
    {
        HashMap map;

        // See if the class exists in the cache.
        if (!values.containsKey(cls))
        {
            // Class not in cache so return null.
            return null;
        }

        // Get the cache of field values for the class.
        map = (HashMap) values.get(cls);

        // Extract the specified field from the cache.
        return map.get(attr);
    }
public Object get ( Class cls , String attr ) { HashMap map ; // See if the class exists in the cache. if ( ! values . containsKey ( cls ) ) { // Class not in cache so return null. return null ; } // Get the cache of field values for the class. map = ( HashMap ) values . get ( cls ) ; // Extract the specified field from the cache. return map . get ( attr ) ; }
Gets the value of the named field of the specified class.

@param  cls  The class in which the field to get is declared.
@param  attr The name of the field.

@return The object value of the attribute.
Gets the value of the named field of the specified class .