Package tools.refinery.generator
Record Class ConsistencyCheckResult
java.lang.Object
java.lang.Record
tools.refinery.generator.ConsistencyCheckResult
public record ConsistencyCheckResult(ModelFacade facade, List<ConsistencyCheckResult.AnyError> inconsistencies)
extends Record
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static final record
ConsistencyCheckResult.Error<A extends AbstractValue<A,
C>, C> -
Constructor Summary
ConstructorDescriptionConsistencyCheckResult
(ModelFacade facade, List<ConsistencyCheckResult.AnyError> inconsistencies) Creates an instance of aConsistencyCheckResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.facade()
Returns the value of thefacade
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinconsistencies
record component.boolean
void
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ConsistencyCheckResult
public ConsistencyCheckResult(ModelFacade facade, List<ConsistencyCheckResult.AnyError> inconsistencies) Creates an instance of aConsistencyCheckResult
record class.- Parameters:
facade
- the value for thefacade
record componentinconsistencies
- the value for theinconsistencies
record component
-
-
Method Details
-
isConsistent
public boolean isConsistent() -
throwIfInconsistent
public void throwIfInconsistent() -
formatMessage
-
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)
. -
facade
Returns the value of thefacade
record component.- Returns:
- the value of the
facade
record component
-
inconsistencies
Returns the value of theinconsistencies
record component.- Returns:
- the value of the
inconsistencies
record component
-