Record Class CelExpr.GreaterThanOrEqualTo
java.lang.Object
java.lang.Record
com.google.mu.cel.CelExpr.GreaterThanOrEqualTo
- All Implemented Interfaces:
CelExpr,CelExpr.Binary
- Enclosing interface:
CelExpr
public static record CelExpr.GreaterThanOrEqualTo(CelExpr left, CelExpr right, int sourceIndex)
extends Record
implements CelExpr.Binary
Greater than or equal to relational comparison:
x >= y.- Since:
- 10.7
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.mu.cel.CelExpr
CelExpr.Add, CelExpr.And, CelExpr.Binary, CelExpr.BoolValue, CelExpr.BytesValue, CelExpr.Divide, CelExpr.DoubleValue, CelExpr.Element, CelExpr.EqualTo, CelExpr.FunctionCall, CelExpr.GreaterThan, CelExpr.GreaterThanOrEqualTo, CelExpr.Ident, CelExpr.IfElse, CelExpr.In, CelExpr.Index, CelExpr.KeyedBy<K>, CelExpr.LessThan, CelExpr.LessThanOrEqualTo, CelExpr.ListOf, CelExpr.LongValue, CelExpr.Macro, CelExpr.MapOf, CelExpr.MemberCall, CelExpr.Modulo, CelExpr.Multiply, CelExpr.Negative, CelExpr.Not, CelExpr.NotEqualTo, CelExpr.NullValue, CelExpr.OptionalIndex, CelExpr.OptionalSelect, CelExpr.Or, CelExpr.Select, CelExpr.StringValue, CelExpr.Struct, CelExpr.Subtract, CelExpr.UintValue, CelExpr.Unary -
Constructor Summary
ConstructorsConstructorDescriptionGreaterThanOrEqualTo(CelExpr left, CelExpr right, int sourceIndex) Creates an instance of aGreaterThanOrEqualTorecord 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.right()Returns the value of therightrecord component.intReturns the value of thesourceIndexrecord component.toString()Returns a string representation of this record class.withSourceIndex(int index) Returns a copy of this expression with the given source index.
-
Constructor Details
-
GreaterThanOrEqualTo
Creates an instance of aGreaterThanOrEqualTorecord class.- Parameters:
left- the value for theleftrecord componentright- the value for therightrecord componentsourceIndex- the value for thesourceIndexrecord component
-
-
Method Details
-
withSourceIndex
Description copied from interface:CelExprReturns a copy of this expression with the given source index.- Specified by:
withSourceIndexin interfaceCelExpr
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
left
Returns the value of theleftrecord component.- Specified by:
leftin interfaceCelExpr.Binary- Returns:
- the value of the
leftrecord component
-
right
Returns the value of therightrecord component.- Specified by:
rightin interfaceCelExpr.Binary- Returns:
- the value of the
rightrecord component
-
sourceIndex
public int sourceIndex()Returns the value of thesourceIndexrecord component.- Specified by:
sourceIndexin interfaceCelExpr- Returns:
- the value of the
sourceIndexrecord component
-