Class ViewAllCustomersAction

java.lang.Object
trial.gaurav.customer.ViewAllCustomersAction
All Implemented Interfaces:
Action

public class ViewAllCustomersAction extends Object implements Action
The `ViewAllCustomersAction` class represents an action to view all customers from the customer records. It implements the `Action` interface to define the behavior of the action when selected in the menu.
  • Field Details

  • Constructor Details

    • ViewAllCustomersAction

      public ViewAllCustomersAction(LinkedList<Customer> cRecords, CustomerConsoleManager cConsoleManager)
      Constructs a new `ViewAllCustomersAction` object with the given customer records and customer console manager.
      Parameters:
      cRecords - The linked list containing the existing customer records.
      cConsoleManager - The customer console manager used to display customer details.
  • Method Details

    • select

      public void select()
      Performs the action to view all customers from the customer records. The method displays the details of all customers present in the records using the customer console manager.
      Specified by:
      select in interface Action