|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faktorips.runtime.formula.FormulaEvaluatorUtil.FunctionWithListAsArgumentHelper<E>
public abstract static class FormulaEvaluatorUtil.FunctionWithListAsArgumentHelper<E>
Base class for functions working on list arguments. Subclasses define the function by
overwriting getPreliminaryResult(Object, Object) and
getFallBackValue().
| Constructor Summary | |
|---|---|
FormulaEvaluatorUtil.FunctionWithListAsArgumentHelper()
|
|
| Method Summary | |
|---|---|
abstract E |
getFallBackValue()
Returns the value this function defaults to if an empty list or null is given as an argument. |
abstract E |
getPreliminaryResult(E currentResult,
E nextValue)
Calculates a preliminary result based on the current result and the next value in the list. |
E |
getResult(List<E> listOfValues)
Returns the result of this function given a list of values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormulaEvaluatorUtil.FunctionWithListAsArgumentHelper()
| Method Detail |
|---|
public E getResult(List<E> listOfValues)
listOfValues - A List of values.public abstract E getFallBackValue()
public abstract E getPreliminaryResult(E currentResult,
E nextValue)
currentResult - The current result calculated up to this point.nextValue - The value to be considered next.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||