Package net.hollowcube.mql.tree
Record Class MqlTernaryExpr
java.lang.Object
java.lang.Record
net.hollowcube.mql.tree.MqlTernaryExpr
- All Implemented Interfaces:
MqlExpr
-
Constructor Summary
ConstructorsConstructorDescriptionMqlTernaryExpr(@NotNull MqlExpr condition, @NotNull MqlExpr trueCase, @NotNull MqlExpr falseCase) Creates an instance of aMqlTernaryExprrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull MqlExprReturns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull MqlExprReturns the value of thefalseCaserecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.@NotNull MqlExprtrueCase()Returns the value of thetrueCaserecord component.<P,R> R visit(@NotNull MqlVisitor<P, R> visitor, P p)
-
Constructor Details
-
MqlTernaryExpr
public MqlTernaryExpr(@NotNull @NotNull MqlExpr condition, @NotNull @NotNull MqlExpr trueCase, @NotNull @NotNull MqlExpr falseCase) Creates an instance of aMqlTernaryExprrecord class.- Parameters:
condition- the value for theconditionrecord componenttrueCase- the value for thetrueCaserecord componentfalseCase- the value for thefalseCaserecord component
-
-
Method Details
-
evaluate
-
visit
-
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). -
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
trueCase
Returns the value of thetrueCaserecord component.- Returns:
- the value of the
trueCaserecord component
-
falseCase
Returns the value of thefalseCaserecord component.- Returns:
- the value of the
falseCaserecord component
-