base/common/src/main/com/thesett/common/reflect/DirectMemento.java
public Collection getAllFieldNames(Class cls)
    {
        /*log.fine("public Collection getAllFieldNames(Class cls): called");*/

        // 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 fields for the class
        Map map = (HashMap) values.get(cls);

        // Return all the keys from cache of fields
        return map.keySet();
    }
public Collection getAllFieldNames(Class cls)
    {
        /*log.fine("public Collection getAllFieldNames(Class cls): called");*/

        // 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 fields for the class
        Map map = (HashMap) values.get(cls);

        // Return all the keys from cache of fields
        return map.keySet();
    }
Generates a list of all the fields of the object that this memento maps for a given class.

@param  cls The class to get all field names for.

@return A collection of the field names or null if the specified class is not part of the objects class hierarchy
chain.