Record Class ResourceDMBean.MethodAccessor
java.lang.Object
java.lang.Record
org.jgroups.jmx.ResourceDMBean.MethodAccessor
- All Implemented Interfaces:
ResourceDMBean.Accessor
- Enclosing class:
ResourceDMBean
public static record ResourceDMBean.MethodAccessor(Method method, Object target)
extends Record
implements ResourceDMBean.Accessor
- Author:
- Chris Mills, Vladimir Blagojevic, Bela Ban
-
Constructor Summary
ConstructorsConstructorDescriptionMethodAccessor(Method method, Object target) Creates an instance of aMethodAccessorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Invokes a getter or setter.method()Returns the value of themethodrecord component.target()Returns the value of thetargetrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
MethodAccessor
-
-
Method Details
-
invoke
Description copied from interface:ResourceDMBean.AccessorInvokes a getter or setter. For the getter, new_val must be ignored (null)- Specified by:
invokein interfaceResourceDMBean.Accessor- Throws:
Exception
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-