Module hw06

Class CopyAcc

All Implemented Interfaces:
IAccumulator

public class CopyAcc extends AAccumulator
Accumulates the values into a list, starting with an empty list.
Author:
swong
  • Constructor Details

    • CopyAcc

      public CopyAcc()
      Constructor for the class
  • Method Details

    • accumulate

      public void accumulate(Object x)
      Description copied from interface: IAccumulator
      Accumulates the given value into the internally stored total
      Parameters:
      x - The value to process for accumulation