All Classes and Interfaces
Class
Description
Utility class responsible for parsing command-line arguments and applying them
to a
TaxCalculator instance.Exception thrown when a sell operation attempts to sell more shares than are currently held.
Exception thrown when an unrecognized operation type is encountered during processing.
Represents a single financial operation involving buying or selling assets.
Represents a stock position and manages buy and sell operations while tracking cost, shares, and tax calculations.
Compute taxes based on a sequence of stock trading operations such as "buy" and "sell".
Builder for new instances of
TaxCalculator.Test class for the
TaxCalculator class, ensuring correct tax calculations
for various scenarios including sales with profit, losses, and different cost methods.Exception thrown when an operation attempts to process a quantity that is zero or negative.