Record Class CelExpr.BytesValue
java.lang.Object
java.lang.Record
com.google.mu.cel.CelExpr.BytesValue
- All Implemented Interfaces:
CelExpr
- Enclosing interface:
CelExpr
-
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
ConstructorsConstructorDescriptionBytesValue(byte[] value, int sourceIndex) Creates an instance of aBytesValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.intReturns the value of thesourceIndexrecord component.toString()Returns a string representation of this record class.byte[]value()Returns the value of thevaluerecord component.withSourceIndex(int index) Returns a copy of this expression with the given source index.
-
Constructor Details
-
BytesValue
public BytesValue(byte[] value, int sourceIndex) Creates an instance of aBytesValuerecord class.- Parameters:
value- the value for thevaluerecord 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
-
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. -
hashCode
-
value
public byte[] value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
sourceIndex
public int sourceIndex()Returns the value of thesourceIndexrecord component.- Specified by:
sourceIndexin interfaceCelExpr- Returns:
- the value of the
sourceIndexrecord component
-