Package tools.refinery.generator
Record Class ConsistencyCheckResult.Error<A extends AbstractValue<A,C>,C>
java.lang.Object
java.lang.Record
tools.refinery.generator.ConsistencyCheckResult.Error<A,C>
- All Implemented Interfaces:
ConsistencyCheckResult.AnyError
- Enclosing class:
ConsistencyCheckResult
public static record ConsistencyCheckResult.Error<A extends AbstractValue<A,C>,C> (PartialSymbol<A extends AbstractValue<A,C>,C> partialSymbol, Tuple tuple, A extends AbstractValue<A,C> value)
extends Record
implements ConsistencyCheckResult.AnyError
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepartialSymbolrecord component.final StringtoString()Returns a string representation of this record class.tuple()Returns the value of thetuplerecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Error
Creates an instance of aErrorrecord class.- Parameters:
partialSymbol- the value for thepartialSymbolrecord componenttuple- the value for thetuplerecord componentvalue- the value for thevaluerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
partialSymbol
Returns the value of thepartialSymbolrecord component.- Specified by:
partialSymbolin interfaceConsistencyCheckResult.AnyError- Returns:
- the value of the
partialSymbolrecord component
-
tuple
Returns the value of thetuplerecord component.- Specified by:
tuplein interfaceConsistencyCheckResult.AnyError- Returns:
- the value of the
tuplerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-