Class LocalMListAccumulator<E>

    • Constructor Detail

      • LocalMListAccumulator

        public LocalMListAccumulator​(String name)
        Instantiates a new LocalMListAccumulator.
        Parameters:
        name - the name of the accumulator
    • Method Detail

      • add

        public void add​(E e)
        Description copied from interface: MAccumulator
        Adds an item to the accumulator
        Parameters:
        e - the item to add
      • merge

        public void merge​(MAccumulator<E,​List<E>> other)
        Description copied from interface: MAccumulator
        Merges another accumulator with this one
        Parameters:
        other - the other accumulator to merge
      • reset

        public void reset()
        Description copied from interface: MAccumulator
        Resets the accumulator to its zero-value.
      • value

        public List<E> value()
        Description copied from interface: MAccumulator
        The value of the accumulator.
        Returns:
        the result of the accumulator
      • isZero

        public boolean isZero()
        Description copied from interface: MAccumulator
        Determines if the accumulator is a zero value
        Returns:
        True if the accumulator is in a zero state
      • copy

        public LocalMAccumulator<E,​List<E>> copy()
        Description copied from interface: Copyable

        Makes a copy of this object.

        Returns:
        A copy of this object.