Record Class AccessorInfo
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.domain.common.accessor.gizmo.AccessorInfo
- Record Components:
returnTypeRequired- a flag that indicates if the return type is required or optionalreadMethodWithParameter- a flag that allows the read method to accept an argument
public record AccessorInfo(boolean returnTypeRequired, boolean readMethodWithParameter)
extends Record
Additional information for the GIZMO accessor generation.
-
Constructor Summary
ConstructorsConstructorDescriptionAccessorInfo(boolean returnTypeRequired, boolean readMethodWithParameter) Creates an instance of aAccessorInforecord 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.static AccessorInfoof(boolean returnTypeRequired, boolean readMethodWithParameter) booleanReturns the value of thereadMethodWithParameterrecord component.booleanReturns the value of thereturnTypeRequiredrecord component.final StringtoString()Returns a string representation of this record class.static AccessorInfostatic AccessorInfo
-
Constructor Details
-
AccessorInfo
public AccessorInfo(boolean returnTypeRequired, boolean readMethodWithParameter) Creates an instance of aAccessorInforecord class.- Parameters:
returnTypeRequired- the value for thereturnTypeRequiredrecord componentreadMethodWithParameter- the value for thereadMethodWithParameterrecord component
-
-
Method Details
-
withReturnValueAndNoArguments
-
withReturnValueAndArguments
-
of
-
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 with '=='. -
returnTypeRequired
public boolean returnTypeRequired()Returns the value of thereturnTypeRequiredrecord component.- Returns:
- the value of the
returnTypeRequiredrecord component
-
readMethodWithParameter
public boolean readMethodWithParameter()Returns the value of thereadMethodWithParameterrecord component.- Returns:
- the value of the
readMethodWithParameterrecord component
-