Package tools.refinery.generator
Record Class ModelFacadeResult.ConcretizationRejected
java.lang.Object
java.lang.Record
tools.refinery.generator.ModelFacadeResult.ConcretizationRejected
- All Implemented Interfaces:
ModelFacadeResult
,ModelFacadeResult.Rejected
- Enclosing interface:
ModelFacadeResult
public static record ModelFacadeResult.ConcretizationRejected(PropagationRejectedResult concretizationResult)
extends Record
implements ModelFacadeResult.Rejected
-
Nested Class Summary
Nested classes/interfaces inherited from interface tools.refinery.generator.ModelFacadeResult
ModelFacadeResult.ConcretizationRejected, ModelFacadeResult.PropagationRejected, ModelFacadeResult.Rejected, ModelFacadeResult.Success
-
Field Summary
Fields inherited from interface tools.refinery.generator.ModelFacadeResult
SUCCESS
-
Constructor Summary
ConstructorDescriptionConcretizationRejected
(PropagationRejectedResult concretizationResult) Creates an instance of aConcretizationRejected
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconcretizationResult
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
boolean
reason()
final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface tools.refinery.generator.ModelFacadeResult
isRejected
Methods inherited from interface tools.refinery.generator.ModelFacadeResult.Rejected
throwIfRejected
-
Constructor Details
-
ConcretizationRejected
Creates an instance of aConcretizationRejected
record class.- Parameters:
concretizationResult
- the value for theconcretizationResult
record component
-
-
Method Details
-
isPropagationRejected
public boolean isPropagationRejected()- Specified by:
isPropagationRejected
in interfaceModelFacadeResult
-
isConcretizationRejected
public boolean isConcretizationRejected()- Specified by:
isConcretizationRejected
in interfaceModelFacadeResult
-
formatMessage
- Specified by:
formatMessage
in interfaceModelFacadeResult.Rejected
-
reason
- Specified by:
reason
in interfaceModelFacadeResult.Rejected
-
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 withObjects::equals(Object,Object)
. -
concretizationResult
Returns the value of theconcretizationResult
record component.- Returns:
- the value of the
concretizationResult
record component
-