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
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final recordConsistencyCheckResult.Error<A extends AbstractValue<A,C>, C> -
Constructor Summary
ConstructorsConstructorDescriptionConsistencyCheckResult(ModelFacade facade, List<ConsistencyCheckResult.AnyError> inconsistencies) Creates an instance of aConsistencyCheckResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.facade()Returns the value of thefacaderecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinconsistenciesrecord component.booleanvoidfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConsistencyCheckResult
public ConsistencyCheckResult(ModelFacade facade, List<ConsistencyCheckResult.AnyError> inconsistencies) Creates an instance of aConsistencyCheckResultrecord class.- Parameters:
facade- the value for thefacaderecord componentinconsistencies- the value for theinconsistenciesrecord 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 thefacaderecord component.- Returns:
- the value of the
facaderecord component
-
inconsistencies
Returns the value of theinconsistenciesrecord component.- Returns:
- the value of the
inconsistenciesrecord component
-