Package com.alibaba.nacos.sys.utils
Class MethodUtil
java.lang.Object
com.alibaba.nacos.sys.utils.MethodUtil
MethodUtil related.
- Author:
- yanhom
-
Method Summary
Modifier and TypeMethodDescriptionstatic doubleinvokeAndReturnDouble(Method method, Object targetObj) Invoke method and return double value.static longinvokeAndReturnLong(Method method, Object targetObj) Invoke method and return long value.
-
Method Details
-
invokeAndReturnDouble
Invoke method and return double value.- Parameters:
method- target methodtargetObj- the object the underlying method is invoked from- Returns:
- result
-
invokeAndReturnLong
Invoke method and return long value.- Parameters:
method- target methodtargetObj- the object the underlying method is invoked from- Returns:
- result
-