private static Method[] getMethods(Object object) {
        Method[] methods = methodCache.get(object.getClass());

        if (methods == null) {
            methods = object.getClass().getMethods();
            methodCache.put(object.getClass(), methods);
        }
        return methods;
    }
private static Method[] getMethods(Object object) {
        Method[] methods = methodCache.get(object.getClass());

        if (methods == null) {
            methods = object.getClass().getMethods();
            methodCache.put(object.getClass(), methods);
        }
        return methods;
    }
private static Method [ ] getMethods ( Object object ) { Method [ ] methods = methodCache . get ( object . getClass ( ) ) ; if ( methods == null ) { methods = object . getClass ( ) . getMethods ( ) ; methodCache . put ( object . getClass ( ) , methods ) ; } return methods ; }
Determines the class of a given object and returns an array of that class's methods. The information might come
from a cache.
@param object the object to examine
@return a list of methods belonging to the class of the object
Determines the class of a given object and returns an array of that class s methods . The information might come from a cache .