Package io.quarkus.qute
Class ValueResolvers
java.lang.Object
io.quarkus.qute.ValueResolvers
Common value resolvers.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueResolverstatic ValueResolverstatic ValueResolverstatic ValueResolverPerforms conditional AND on the base object and the first parameter.static ValueResolverPerforms conditional OR on the base object and the first parameter.static ValueResolverstatic ValueResolverstatic ValueResolverstatic ValueResolverstatic ValueResolverstatic ValueResolverstatic ValueResolverorEmpty()Return an empty list if the base object is null or not found.static ValueResolverReturns the default value if the base object isnull, emptyOptionalor not found and the base object otherwise.static ValueResolverstatic ValueResolverstatic ValueResolverstatic ValueResolverReturnsResults#NotFoundif the base object is falsy and the base object otherwise.
-
Field Details
-
OR
- See Also:
-
-
Constructor Details
-
ValueResolvers
public ValueResolvers()
-
-
Method Details
-
rawResolver
-
listResolver
-
collectionResolver
-
thisResolver
-
orResolver
Returns the default value if the base object isnull, emptyOptionalor not found and the base object otherwise.foo.or(bar),foo or true,name ?: 'elvis' -
orEmpty
Return an empty list if the base object is null or not found. -
trueResolver
ReturnsResults#NotFoundif the base object is falsy and the base object otherwise.Can be used together with
orResolver()to form a ternary operator.person.isElvis ? 'elvis' : notElvis -
mapEntryResolver
-
mapResolver
-
mapperResolver
-
logicalAndResolver
Performs conditional AND on the base object and the first parameter. It's a short-circuiting operation - the parameter is only evaluated if needed.- See Also:
-
logicalOrResolver
Performs conditional OR on the base object and the first parameter. It's a short-circuiting operation - the parameter is only evaluated if needed.- See Also:
-
arrayResolver
-
numberValueResolver
-
plusResolver
-
minusResolver
-
modResolver
-