Record Class MethodKey
java.lang.Object
java.lang.Record
org.elasticsearch.entitlement.instrumentation.MethodKey
- Record Components:
className- the "internal name" of the class: includes the package info, but with periods replaced by slashes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisStatic()Returns the value of theisStaticrecord component.Returns the value of themethodNamerecord component.Returns the value of theparameterTypesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MethodKey
public MethodKey(String className, String methodName, List<String> parameterTypes, boolean isStatic) Creates an instance of aMethodKeyrecord class.- Parameters:
className- the value for theclassNamerecord componentmethodName- the value for themethodNamerecord componentparameterTypes- the value for theparameterTypesrecord componentisStatic- the value for theisStaticrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
parameterTypes
Returns the value of theparameterTypesrecord component.- Returns:
- the value of the
parameterTypesrecord component
-
isStatic
public boolean isStatic()Returns the value of theisStaticrecord component.- Returns:
- the value of the
isStaticrecord component
-