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
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thepartialSymbol
record component.final String
toString()
Returns a string representation of this record class.tuple()
Returns the value of thetuple
record component.value()
Returns the value of thevalue
record component.
-
Constructor Details
-
Error
Creates an instance of aError
record class.- Parameters:
partialSymbol
- the value for thepartialSymbol
record componenttuple
- the value for thetuple
record componentvalue
- the value for thevalue
record 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 thepartialSymbol
record component.- Specified by:
partialSymbol
in interfaceConsistencyCheckResult.AnyError
- Returns:
- the value of the
partialSymbol
record component
-
tuple
Returns the value of thetuple
record component.- Specified by:
tuple
in interfaceConsistencyCheckResult.AnyError
- Returns:
- the value of the
tuple
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-