All Known Implementing Classes:
AddRecipeController, CookbookController, PantryController, ShoppingListController

public interface Observer
Interface for the observer role in the observer pattern
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    update(ButtonEnum buttonEnum)
    Updates the observer with the button that was pressed
    void
    update(ButtonEnum buttonEnum, Object object)
    Updates the observer with the button that was pressed and the object affected
  • Method Details

    • update

      void update(ButtonEnum buttonEnum, Object object)
      Updates the observer with the button that was pressed and the object affected
      Parameters:
      buttonEnum - the button that was pressed
      object - the object that was pressed
    • update

      void update(ButtonEnum buttonEnum)
      Updates the observer with the button that was pressed
      Parameters:
      buttonEnum - the button that was pressed