Class MethodUtil

java.lang.Object
com.alibaba.nacos.sys.utils.MethodUtil

public final class MethodUtil extends Object
MethodUtil related.
Author:
yanhom
  • Method Details

    • invokeAndReturnDouble

      public static double invokeAndReturnDouble(Method method, Object targetObj)
      Invoke method and return double value.
      Parameters:
      method - target method
      targetObj - the object the underlying method is invoked from
      Returns:
      result
    • invokeAndReturnLong

      public static long invokeAndReturnLong(Method method, Object targetObj)
      Invoke method and return long value.
      Parameters:
      method - target method
      targetObj - the object the underlying method is invoked from
      Returns:
      result