Class MoveDataAccess

java.lang.Object
com.mg105.data_control.access.MoveDataAccess

public class MoveDataAccess extends Object
This is a class mean to interact and get information about moves from a "database"

This class is really only here so PartyDataAccess does not violate Single Responsibility Principle and to help satisfy open and closed principle in PartyDataAccess

  • Constructor Details

    • MoveDataAccess

      public MoveDataAccess()
  • Method Details

    • getMoveDetails

      @NotNull public @NotNull MoveDetails getMoveDetails(String name) throws NoSuchElementException
      Returns an object that represents the details of the move desired
      Parameters:
      name - the name of move to return the details of
      Returns:
      an object that represents the details of the move desired
      Throws:
      NoSuchElementException - iff the move's details are not found (move does not exist)
      See Also: