Package com.axelor.meta.query.plan
Record Class QueryPredicate.InList
java.lang.Object
java.lang.Record
com.axelor.meta.query.plan.QueryPredicate.InList
- All Implemented Interfaces:
QueryPredicate
- Enclosing interface:
QueryPredicate
public static record QueryPredicate.InList(QueryExpression left, boolean negated, List<QueryExpression> values)
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
ConstructorsConstructorDescriptionInList(QueryExpression left, boolean negated, List<QueryExpression> values) Creates an instance of aInListrecord 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.booleannegated()Returns the value of thenegatedrecord component.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
InList
Creates an instance of aInListrecord class.- Parameters:
left- the value for theleftrecord componentnegated- the value for thenegatedrecord componentvalues- the value for thevaluesrecord 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 '=='. -
left
Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
negated
public boolean negated()Returns the value of thenegatedrecord component.- Returns:
- the value of the
negatedrecord component
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-