Class ReflectionUtil


  • public final class ReflectionUtil
    extends Object
    Reflection-related utility methods.
    Since:
    6.7.0
    • Method Detail

      • findMethod

        public static @NonNull Optional<Method> findMethod​(Class<?> owningClass,
                                                           String name)
        Looks for the named method of the given class.
        Parameters:
        owningClass - the class in which to find the method
        name - the name of the method to find
        Returns:
        empty if there is no such method
        See Also:
        ReflectionUtils.findMethod(Class, String)