Interface GlobalData.Accumulator

  • Enclosing interface:
    GlobalData

    public static interface GlobalData.Accumulator
    • Method Detail

      • 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:
        java.lang.IllegalArgumentException - if the element is of unsupported type.
      • complete

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