Record Class JTypeContext.ChosenField
java.lang.Object
java.lang.Record
honeyroasted.jype.system.solver.constraints.JTypeContext.ChosenField
- All Implemented Interfaces:
honeyroasted.almonds.SimpleName
- Enclosing interface:
JTypeContext
public static record JTypeContext.ChosenField(JExpressionInformation.GetField<?> expression, JFieldReference chosen)
extends Record
implements honeyroasted.almonds.SimpleName
-
Constructor Summary
ConstructorsConstructorDescriptionChosenField(JExpressionInformation.GetField<?> expression, JFieldReference chosen) Creates an instance of aChosenFieldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchosen()Returns the value of thechosenrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChosenField
Creates an instance of aChosenFieldrecord class.- Parameters:
expression- the value for theexpressionrecord componentchosen- the value for thechosenrecord component
-
-
Method Details
-
simpleName
- Specified by:
simpleNamein interfacehoneyroasted.almonds.SimpleName
-
toString
-
hashCode
-
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). -
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
chosen
Returns the value of thechosenrecord component.- Returns:
- the value of the
chosenrecord component
-