Package com.luciad.util.expression
Interface TLcdExpressionFactory.CaseExpression<T>
- Type Parameters:
T
- The result type
- All Superinterfaces:
ILcdExpression<T>
- Enclosing class:
TLcdExpressionFactory
An expression that can be used to chain many if-then expressions.
See TLcdExpressionFactory.cases(com.luciad.util.expression.ILcdExpression<T>)
for more details and examples.
- Since:
- 2012.1
-
Method Summary
Modifier and TypeMethodDescriptionwhen
(ILcdExpression<Boolean> aIf, ILcdExpression<T> aThen) Adds a new if-then expression to this 'case' expression.when
(ILcdExpression<Boolean> aIf, T aThen) Adds a new if-then expression to this 'case' expression.
-
Method Details
-
when
Adds a new if-then expression to this 'case' expression.- Parameters:
aIf
- The conditionaThen
- The expression evaluated whenaIf
returns true- Returns:
- this
-
when
Adds a new if-then expression to this 'case' expression.- Parameters:
aIf
- The conditionaThen
- The value returned whenaIf
returns true- Returns:
- this
-