Record Class ModelConfigParameter
java.lang.Object
java.lang.Record
ai.timefold.solver.service.definition.internal.descriptor.ModelConfigParameter
- Record Components:
id- the parameter idname- the human-readable namedescription- the parameter human-readable descriptionkind- the parameter kindtype- the OpenAPI schema typearrayItemType- the OpenAPI schema type for array itemsformat- the data format which further specifies the schema typeschemaTypeRef- the OpenAPI schema type reference (used when the schema type is not a primitive type)nullable- whether the parameter acceptsnullas a value, as defined by the OpenAPI schemaconstraintNameRef- the constraint name reference (used when the parameter is a constraint weight or any other parameter related to a constraint)
public record ModelConfigParameter(String id, String name, String description, ParameterKind kind, org.eclipse.microprofile.openapi.models.media.Schema.SchemaType type, org.eclipse.microprofile.openapi.models.media.Schema.SchemaType arrayItemType, DataFormat format, String schemaTypeRef, boolean nullable, String constraintNameRef)
extends Record
Represents a constraint parameter, which is the constraint weight or any other parameter impacting the constraint behavior.
Parameters are defined by the model in the ModelConfigOverrides class.
-
Constructor Summary
ConstructorsConstructorDescriptionModelConfigParameter(String id, String name, String description, ParameterKind kind, org.eclipse.microprofile.openapi.models.media.Schema.SchemaType type, org.eclipse.microprofile.openapi.models.media.Schema.SchemaType arrayItemType, DataFormat format, String schemaTypeRef, boolean nullable, String constraintNameRef) Creates an instance of aModelConfigParameterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.microprofile.openapi.models.media.Schema.SchemaTypeReturns the value of thearrayItemTyperecord component.Returns the value of theconstraintNameRefrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.booleannullable()Returns the value of thenullablerecord component.Returns the value of theschemaTypeRefrecord component.final StringtoString()Returns a string representation of this record class.org.eclipse.microprofile.openapi.models.media.Schema.SchemaTypetype()Returns the value of thetyperecord component.
-
Constructor Details
-
ModelConfigParameter
public ModelConfigParameter(String id, String name, String description, ParameterKind kind, org.eclipse.microprofile.openapi.models.media.Schema.SchemaType type, org.eclipse.microprofile.openapi.models.media.Schema.SchemaType arrayItemType, DataFormat format, String schemaTypeRef, boolean nullable, String constraintNameRef) Creates an instance of aModelConfigParameterrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentkind- the value for thekindrecord componenttype- the value for thetyperecord componentarrayItemType- the value for thearrayItemTyperecord componentformat- the value for theformatrecord componentschemaTypeRef- the value for theschemaTypeRefrecord componentnullable- the value for thenullablerecord componentconstraintNameRef- the value for theconstraintNameRefrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
name
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
kind
-
type
-
arrayItemType
public org.eclipse.microprofile.openapi.models.media.Schema.SchemaType arrayItemType()Returns the value of thearrayItemTyperecord component.- Returns:
- the value of the
arrayItemTyperecord component
-
format
-
schemaTypeRef
Returns the value of theschemaTypeRefrecord component.- Returns:
- the value of the
schemaTypeRefrecord component
-
nullable
-
constraintNameRef
Returns the value of theconstraintNameRefrecord component.- Returns:
- the value of the
constraintNameRefrecord component
-