Package ch.so.agi.mcp.constraint
Record Class ConstraintExpression.LanguageProfile
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.ConstraintExpression.LanguageProfile
- Enclosing interface:
ConstraintExpression
public static record ConstraintExpression.LanguageProfile(ConstraintExpression.IliVersion version, String mathModel, String textModel, boolean nativeArithmeticOperators)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLanguageProfile(ConstraintExpression.IliVersion version, String mathModel, String textModel, boolean nativeArithmeticOperators) Creates an instance of aLanguageProfilerecord 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.Returns the value of themathModelrecord component.booleanReturns the value of thenativeArithmeticOperatorsrecord component.Returns the value of thetextModelrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
LanguageProfile
public LanguageProfile(ConstraintExpression.IliVersion version, String mathModel, String textModel, boolean nativeArithmeticOperators) Creates an instance of aLanguageProfilerecord class.- Parameters:
version- the value for theversionrecord componentmathModel- the value for themathModelrecord componenttextModel- the value for thetextModelrecord componentnativeArithmeticOperators- the value for thenativeArithmeticOperatorsrecord component
-
-
Method Details
-
forVersion
public static ConstraintExpression.LanguageProfile forVersion(ConstraintExpression.IliVersion version) -
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 '=='. -
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
mathModel
Returns the value of themathModelrecord component.- Returns:
- the value of the
mathModelrecord component
-
textModel
Returns the value of thetextModelrecord component.- Returns:
- the value of the
textModelrecord component
-
nativeArithmeticOperators
public boolean nativeArithmeticOperators()Returns the value of thenativeArithmeticOperatorsrecord component.- Returns:
- the value of the
nativeArithmeticOperatorsrecord component
-