spring-framework / org.springframework.expression.spel.ast / OperatorBetween / getValueInternal

getValueInternal

open fun getValueInternal(state: ExpressionState): BooleanTypedValue

Returns a boolean based on whether a value is in the range expressed. The first operand is any value whilst the second is a list of two values - those two values being the bounds allowed for the first operand (inclusive).

Parameters

state - the expression state

Exceptions

EvaluationException - if there is a problem evaluating the expression

Return
true if the left operand is in the range specified, false otherwise