Package eu.kartoffelquadrat.zoo
Class Zoo
java.lang.Object
eu.kartoffelquadrat.zoo.Zoo
Principal class of the Zoo, offering all relevant public functionality. Access to public methods
of this implementation is demonstrated in the DesktopLauncher class. This class is a singleton.
- Author:
- Maximilian Schiedermeier
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Setter to add a new animal to the zoo.Returns a list with all animal names.getAnimalDetails
(String name) Getter to look up details on one specific animal, identified by name.static Zoo
Singleton patter access method.Getter to retrieve the zoo opening hours.
-
Method Details
-
getInstance
Singleton patter access method.- Returns:
- the one and only Zoo instance.
-
getAllAnimalNames
Returns a list with all animal names.- Returns:
- Collection with the names of all indexed animals.
-
getAnimalDetails
-
addAnimal
-
getOpeningHours
Getter to retrieve the zoo opening hours.- Returns:
- the zoo opening hours.
-