Record Class ModalConstraint
java.lang.Object
java.lang.Record
tools.refinery.store.reasoning.literal.ModalConstraint
- All Implemented Interfaces:
Constraint
public record ModalConstraint(ModalitySpecification modality, ConcretenessSpecification concreteness, Constraint constraint)
extends Record
implements Constraint
-
Constructor Summary
ConstructorsConstructorDescriptionModalConstraint(ModalitySpecification modality, ConcretenessSpecification concreteness, Constraint constraint) Creates an instance of aModalConstraintrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconcretenessrecord component.Returns the value of theconstraintrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanequals(LiteralEqualityHelper helper, Constraint other) final inthashCode()Returns a hash code value for this object.modality()Returns the value of themodalityrecord component.name()static Constraintof(Concreteness concreteness, Constraint constraint) static Constraintof(Modality modality, Constraint constraint) static Constraintof(Modality modality, Concreteness concreteness, Constraint constraint) static Constraintof(ModalitySpecification modality, ConcretenessSpecification concreteness, Constraint constraint) @NotNull StringtoString()Returns a string representation of this record class.Methods inherited from interface Constraint
aggregateBy, aggregateBy, arity, call, call, call, callTransitive, count, count, invalidIndex, leftJoinBy, leftJoinBy
-
Constructor Details
-
ModalConstraint
public ModalConstraint(ModalitySpecification modality, ConcretenessSpecification concreteness, Constraint constraint) Creates an instance of aModalConstraintrecord class.- Parameters:
modality- the value for themodalityrecord componentconcreteness- the value for theconcretenessrecord componentconstraint- the value for theconstraintrecord component
-
-
Method Details
-
name
- Specified by:
namein interfaceConstraint
-
getParameters
- Specified by:
getParametersin interfaceConstraint
-
getReduction
- Specified by:
getReductionin interfaceConstraint
-
equals
- Specified by:
equalsin interfaceConstraint
-
toReferenceString
- Specified by:
toReferenceStringin interfaceConstraint
-
toString
-
of
-
of
-
of
-
of
public static Constraint of(ModalitySpecification modality, ConcretenessSpecification concreteness, Constraint constraint) -
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. All components in this record class are compared withObjects::equals(Object,Object). -
modality
Returns the value of themodalityrecord component.- Returns:
- the value of the
modalityrecord component
-
concreteness
Returns the value of theconcretenessrecord component.- Returns:
- the value of the
concretenessrecord component
-
constraint
Returns the value of theconstraintrecord component.- Returns:
- the value of the
constraintrecord component
-