Package io.github.perplexhub.rsql
Record Class ResolvedExpression.JsonbPathExpression
java.lang.Object
java.lang.Record
io.github.perplexhub.rsql.ResolvedExpression.JsonbPathExpression
- All Implemented Interfaces:
ResolvedExpression
- Enclosing interface:
- ResolvedExpression
public static record ResolvedExpression.JsonbPathExpression(jakarta.persistence.criteria.Expression<Boolean> expression, boolean inverted)
extends Record
implements ResolvedExpression
Holder for a jsonb expression.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.perplexhub.rsql.ResolvedExpression
ResolvedExpression.JsonbPathExpression, ResolvedExpression.PathExpression -
Constructor Summary
ConstructorsConstructorDescriptionJsonbPathExpression(jakarta.persistence.criteria.Expression<Boolean> expression, boolean inverted) Creates an instance of aJsonbPathExpressionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.jakarta.persistence.criteria.Expression<Boolean>Returns the value of theexpressionrecord component.final inthashCode()Returns a hash code value for this object.booleaninverted()Returns the value of theinvertedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JsonbPathExpression
public JsonbPathExpression(jakarta.persistence.criteria.Expression<Boolean> expression, boolean inverted) Creates an instance of aJsonbPathExpressionrecord class.- Parameters:
expression- the value for theexpressionrecord componentinverted- the value for theinvertedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
inverted
public boolean inverted()Returns the value of theinvertedrecord component.- Returns:
- the value of the
invertedrecord component
-