Package com.mg105.data_control.access
Class MoveDataAccess
java.lang.Object
com.mg105.data_control.access.MoveDataAccess
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 Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull MoveDetails
getMoveDetails
(String name) Returns an object that represents the details of the move desired
-
Constructor Details
-
MoveDataAccess
public MoveDataAccess()
-
-
Method Details
-
getMoveDetails
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:
-