Record Class GizmoMemberInfo
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.domain.common.accessor.gizmo.GizmoMemberInfo
- Record Components:
descriptor- never nullreturnTypeRequired- true if the method return type is requiredannotationClass- null if not annotated
public record GizmoMemberInfo(GizmoMemberDescriptor descriptor, boolean returnTypeRequired, Class<? extends Annotation> annotationClass)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGizmoMemberInfo(GizmoMemberDescriptor descriptor, boolean returnTypeRequired, Class<? extends Annotation> annotationClass) Creates an instance of aGizmoMemberInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation>Returns the value of theannotationClassrecord component.Returns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thereturnTypeRequiredrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GizmoMemberInfo
public GizmoMemberInfo(GizmoMemberDescriptor descriptor, boolean returnTypeRequired, Class<? extends Annotation> annotationClass) Creates an instance of aGizmoMemberInforecord class.- Parameters:
descriptor- the value for thedescriptorrecord componentreturnTypeRequired- the value for thereturnTypeRequiredrecord componentannotationClass- the value for theannotationClassrecord 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 '=='. -
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
returnTypeRequired
public boolean returnTypeRequired()Returns the value of thereturnTypeRequiredrecord component.- Returns:
- the value of the
returnTypeRequiredrecord component
-
annotationClass
Returns the value of theannotationClassrecord component.- Returns:
- the value of the
annotationClassrecord component
-