Interface GlobalData.Accumulator

Enclosing interface:
GlobalData

public static interface GlobalData.Accumulator
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add a new element to the accumulator.
    Transforms contents of this accumulator into a combined element.
  • Method Details

    • add

      void add(GlobalData.Element e)
      Add a new element to the accumulator. The elements can be combined in arbitrary order, extracted into another element using complete() and combined again.
      Parameters:
      e - Element of the same type that created this accumulator.
      Throws:
      IllegalArgumentException - if the element is of unsupported type.
    • complete

      GlobalData.Element complete()
      Transforms contents of this accumulator into a combined element.
      Returns:
      Combined element.