Package main.boundary.modelviewer
Class ModelViewer
java.lang.Object
main.boundary.modelviewer.ModelViewer
The ModelViewer class is responsible for displaying single or lists of objects that implement the Displayable interface.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
displayListOfDisplayable
(List<? extends Displayable> displayableList) Displays a list of Displayable objects.static void
displaySingleDisplayable
(Displayable displayable) Displays a single Displayable object.
-
Constructor Details
-
ModelViewer
public ModelViewer()
-
-
Method Details
-
displaySingleDisplayable
Displays a single Displayable object.- Parameters:
displayable
- The Displayable object to be displayed.
-
displayListOfDisplayable
Displays a list of Displayable objects.- Parameters:
displayableList
- The list of Displayable objects to be displayed.
-