java.lang.Object
provided.listFW.visitors.AAccumulator
provided.listFW.visitors.LastNegAcc
- All Implemented Interfaces:
IAccumulator
Accumulates (saves) the last negative number given to it.
Base case is Double.NaN (Not a Number)
- Author:
- swong
-
Field Summary
Fields inherited from class provided.listFW.visitors.AAccumulator
value
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accumulate(Object x)
Accumulates the given value into the internally stored totalMethods inherited from class provided.listFW.visitors.AAccumulator
toString
-
Constructor Details
-
LastNegAcc
public LastNegAcc()Constructor for the class
-
-
Method Details
-
accumulate
Description copied from interface:IAccumulator
Accumulates the given value into the internally stored total- Parameters:
x
- The value to process for accumulation
-