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 aJsonbPathExpression
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.jakarta.persistence.criteria.Expression<Boolean>
Returns the value of theexpression
record component.final int
hashCode()
Returns a hash code value for this object.boolean
inverted()
Returns the value of theinverted
record component.final String
toString()
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 aJsonbPathExpression
record class.- Parameters:
expression
- the value for theexpression
record componentinverted
- the value for theinverted
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
expression
Returns the value of theexpression
record component.- Returns:
- the value of the
expression
record component
-
inverted
public boolean inverted()Returns the value of theinverted
record component.- Returns:
- the value of the
inverted
record component
-