Class CityNonUserManager
java.lang.Object
collectionManagers.modeManagers.nonUserMode.CityNonUserManager
- All Implemented Interfaces:
ModeManager<City>
A ModeManager implementation for generating City objects without user input.
-
Constructor Summary
ConstructorsConstructorDescriptionCityNonUserManager
(Scanner scanner) Constructor for setup handler's scanner. -
Method Summary
Modifier and TypeMethodDescriptionGenerates a City object by reading values from the scanner and sets its attributes accordingly.
-
Constructor Details
-
CityNonUserManager
Constructor for setup handler's scanner.- Parameters:
scanner
- Command scanner for reading argument
-
-
Method Details
-
buildObject
Generates a City object by reading values from the scanner and sets its attributes accordingly.- Specified by:
buildObject
in interfaceModeManager<City>
- Returns:
- A generated City object.
- Throws:
BuildObjectException
- If any of the generated values violate restrictions and cannot be added to the collection.
-