Record Class CelExpr.Macro.FilterMap
java.lang.Object
java.lang.Record
com.google.mu.cel.CelExpr.Macro.FilterMap
- All Implemented Interfaces:
CelExpr,CelExpr.Macro
- Enclosing interface:
CelExpr.Macro
public static record CelExpr.Macro.FilterMap(CelExpr target, CelExpr.Ident iterationVar, CelExpr filter, CelExpr transform, int sourceIndex)
extends Record
implements CelExpr.Macro
The
target.map(var, filter, transform) macro (synthesized from three-argument
map macro).- 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.UnaryNested classes/interfaces inherited from interface com.google.mu.cel.CelExpr.Macro
CelExpr.Macro.All, CelExpr.Macro.Exists, CelExpr.Macro.ExistsOne, CelExpr.Macro.Filter, CelExpr.Macro.FilterMap, CelExpr.Macro.Has, CelExpr.Macro.Map -
Constructor Summary
ConstructorsConstructorDescriptionFilterMap(CelExpr target, CelExpr.Ident iterationVar, CelExpr filter, CelExpr transform) FilterMap(CelExpr target, CelExpr.Ident iterationVar, CelExpr filter, CelExpr transform, int sourceIndex) Creates an instance of aFilterMaprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theiterationVarrecord component.intReturns the value of thesourceIndexrecord component.target()Returns the value of thetargetrecord component.toString()Returns a string representation of this record class.Returns the value of thetransformrecord component.withSourceIndex(int index) Returns a copy of this expression with the given source index.
-
Constructor Details
-
FilterMap
public FilterMap(CelExpr target, CelExpr.Ident iterationVar, CelExpr filter, CelExpr transform, int sourceIndex) Creates an instance of aFilterMaprecord class.- Parameters:
target- the value for thetargetrecord componentiterationVar- the value for theiterationVarrecord componentfilter- the value for thefilterrecord componenttransform- the value for thetransformrecord componentsourceIndex- the value for thesourceIndexrecord component
-
FilterMap
-
-
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. -
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
iterationVar
Returns the value of theiterationVarrecord component.- Returns:
- the value of the
iterationVarrecord component
-
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-
transform
Returns the value of thetransformrecord component.- Returns:
- the value of the
transformrecord component
-
sourceIndex
public int sourceIndex()Returns the value of thesourceIndexrecord component.- Specified by:
sourceIndexin interfaceCelExpr- Returns:
- the value of the
sourceIndexrecord component
-