Package com.axelor.meta.query.plan
Record Class QueryPredicate.NullCheck
java.lang.Object
java.lang.Record
com.axelor.meta.query.plan.QueryPredicate.NullCheck
- All Implemented Interfaces:
QueryPredicate
- Enclosing interface:
QueryPredicate
public static record QueryPredicate.NullCheck(QueryExpression expression, boolean negated)
extends Record
implements QueryPredicate
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.axelor.meta.query.plan.QueryPredicate
QueryPredicate.Between, QueryPredicate.Comparison, QueryPredicate.Exists, QueryPredicate.InList, QueryPredicate.Logical, QueryPredicate.NullCheck -
Constructor Summary
ConstructorsConstructorDescriptionNullCheck(QueryExpression expression, boolean negated) Creates an instance of aNullCheckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.booleannegated()Returns the value of thenegatedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NullCheck
Creates an instance of aNullCheckrecord class.- Parameters:
expression- the value for theexpressionrecord componentnegated- the value for thenegatedrecord 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
-
negated
public boolean negated()Returns the value of thenegatedrecord component.- Returns:
- the value of the
negatedrecord component
-