Package ch.so.agi.mcp.constraint
Record Class ConstraintInteractionAnalysis.Domain
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.ConstraintInteractionAnalysis.Domain
- Enclosing class:
ConstraintInteractionAnalysis
public static record ConstraintInteractionAnalysis.Domain(String attribute, String kind, boolean mandatory, @Nullable BigDecimal minimum, @Nullable BigDecimal maximum, @Nullable BigDecimal step, List<String> enumValues)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDomain(String attribute, String kind, boolean mandatory, @Nullable BigDecimal minimum, @Nullable BigDecimal maximum, @Nullable BigDecimal step, List<String> enumValues) Creates an instance of aDomainrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributerecord component.Returns the value of theenumValuesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.booleanReturns the value of themandatoryrecord component.@Nullable BigDecimalmaximum()Returns the value of themaximumrecord component.@Nullable BigDecimalminimum()Returns the value of theminimumrecord component.@Nullable BigDecimalstep()Returns the value of thesteprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Domain
public Domain(String attribute, String kind, boolean mandatory, @Nullable BigDecimal minimum, @Nullable BigDecimal maximum, @Nullable BigDecimal step, List<String> enumValues) Creates an instance of aDomainrecord class.- Parameters:
attribute- the value for theattributerecord componentkind- the value for thekindrecord componentmandatory- the value for themandatoryrecord componentminimum- the value for theminimumrecord componentmaximum- the value for themaximumrecord componentstep- the value for thesteprecord componentenumValues- the value for theenumValuesrecord 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 '=='. -
attribute
Returns the value of theattributerecord component.- Returns:
- the value of the
attributerecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
mandatory
public boolean mandatory()Returns the value of themandatoryrecord component.- Returns:
- the value of the
mandatoryrecord component
-
minimum
Returns the value of theminimumrecord component.- Returns:
- the value of the
minimumrecord component
-
maximum
Returns the value of themaximumrecord component.- Returns:
- the value of the
maximumrecord component
-
step
Returns the value of thesteprecord component.- Returns:
- the value of the
steprecord component
-
enumValues
Returns the value of theenumValuesrecord component.- Returns:
- the value of the
enumValuesrecord component
-