Class RunningSumParented

Object
RunningSumParented

public class RunningSumParented extends Object
Wraps a RunningSum with an additional variable, indicating the total number of parent operations.

hashCode() and equals(Object) delegate to the underlying RunningSum.

Author:
Owen Feehan
  • Constructor Details

    • RunningSumParented

      public RunningSumParented(int numberParentOperations)
      Creates a new RunningSumParented instance.
      Parameters:
      numberParentOperations - The number of parent operations.
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getNumberParentOperations

      public int getNumberParentOperations()
      The number of parent operations.
    • getRunningSum

      public RunningSum getRunningSum()