Record Class MethodData
java.lang.Object
java.lang.Record
eu.coding.commune.startup.validator.model.method.MethodData
-
Constructor Summary
ConstructorsConstructorDescriptionMethodData(Method method, Object expectedObject, Object returnedObject) Creates an instance of aMethodDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectedObjectrecord component.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.Returns the value of thereturnedObjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MethodData
Creates an instance of aMethodDatarecord class.- Parameters:
method- the value for themethodrecord componentexpectedObject- the value for theexpectedObjectrecord componentreturnedObject- the value for thereturnedObjectrecord 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. 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
-
expectedObject
Returns the value of theexpectedObjectrecord component.- Returns:
- the value of the
expectedObjectrecord component
-
returnedObject
Returns the value of thereturnedObjectrecord component.- Returns:
- the value of the
returnedObjectrecord component
-