Class IterableListCalc

All Implemented Interfaces:
Calc, IterCalc, ListCalc

public class IterableListCalc extends AbstractListCalc
Adapter that converts a IterCalc to a ListCalc.
Since:
Oct 23, 2008
Author:
jhyde
  • Constructor Details

    • IterableListCalc

      public IterableListCalc(IterCalc iterCalc)
      Creates an IterableListCalc.
      Parameters:
      iterCalc - Calculation that returns an iterable.
  • Method Details

    • evaluateList

      public TupleList evaluateList(Evaluator evaluator)
      Description copied from interface: ListCalc
      Evaluates an expression to yield a list of tuples.

      The list is immutable if Calc.getResultStyle() yields ResultStyle.MUTABLE_LIST. Otherwise, the caller must not modify the list.

      Parameters:
      evaluator - Evaluation context
      Returns:
      A list of tuples, never null.