Record Class OpenMock.Invocation
java.lang.Object
java.lang.Record
cloud.opencode.base.test.OpenMock.Invocation
- Enclosing class:
OpenMock
public static record OpenMock.Invocation(String methodName, Class<?>[] parameterTypes, Object[] args)
extends Record
Invocation record
调用记录
- Since:
- JDK 25, opencode-base-test V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionInvocation(String methodName, Class<?>[] parameterTypes, Object[] args) Creates an instance of aInvocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionObject[]args()Returns the value of theargsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themethodNamerecord component.Class<?>[]Returns the value of theparameterTypesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Invocation
Creates an instance of aInvocationrecord class.- Parameters:
methodName- the value for themethodNamerecord componentparameterTypes- the value for theparameterTypesrecord componentargs- the value for theargsrecord component
-
-
Method Details
-
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). -
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
-
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-