Record Class LogicalExpression.Comparison
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.path.core.query.LogicalExpression.Comparison
- Record Components:
left- the left sideoperator- the comparison operatorright- the right side
- All Implemented Interfaces:
LogicalExpression
- Enclosing interface:
LogicalExpression
public static record LogicalExpression.Comparison(ComparableExpression left, ComparisonOperator operator, ComparableExpression right)
extends Record
implements LogicalExpression
A comparison:
left op right (Section 2.3.5.2.2).-
Nested Class Summary
Nested classes/interfaces inherited from interface LogicalExpression
LogicalExpression.And, LogicalExpression.Comparison, LogicalExpression.Not, LogicalExpression.Or -
Constructor Summary
ConstructorsConstructorDescriptionComparison(ComparableExpression left, ComparisonOperator operator, ComparableExpression right) Creates an instance of aComparisonrecord class. -
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.left()Returns the value of theleftrecord component.operator()Returns the value of theoperatorrecord component.right()Returns the value of therightrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Comparison
public Comparison(ComparableExpression left, ComparisonOperator operator, ComparableExpression right) Creates an instance of aComparisonrecord class.
-
-
Method Details
-
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). -
left
-
operator
-
right
-