Package moblima.entities
Class Settings
java.lang.Object
moblima.entities.Settings
The type Settings.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSettings
(double adultTicket, double blockbusterSurcharge, EnumMap<Showtime.ShowType, Double> showSurcharges, EnumMap<Booking.TicketType, Double> ticketSurcharges, EnumMap<Cinema.ClassType, Double> cinemaSurcharges, EnumMap<Settings.RankedType, Boolean> rankedTypes, List<LocalDate> publicHolidays) Instantiates a new Settings.Instantiates a new Settings. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHoliday
(LocalDate holiday) Add holiday.double
Gets adult ticket.double
Gets blockbuster surcharge.Gets cinema surcharges.Gets holidays.Gets public holidays.Gets ranked lists.Gets show surcharges.Gets ticket surcharges.Print holiday table list.boolean
removeHoliday
(LocalDate holiday) Remove holiday boolean.void
setAdultTicket
(double adultTicket) Sets adult ticket.void
setBlockbusterSurcharge
(double blockbusterSurcharge) Sets blockbuster surcharge.void
setCinemaSurcharges
(EnumMap<Cinema.ClassType, Double> cinemaSurcharges) Sets cinema surcharges.void
setHolidays
(List<LocalDate> publicHolidays) Sets holidays.void
setPublicHolidays
(List<LocalDate> publicHolidays) Sets public holidays.void
setRankedTypes
(EnumMap<Settings.RankedType, Boolean> rankedTypes) Sets ranked lists.void
setShowSurcharges
(EnumMap<Showtime.ShowType, Double> showSurcharges) Sets show surcharges.void
setTicketSurcharges
(EnumMap<Booking.TicketType, Double> ticketSurcharges) Sets ticket surcharges.toString()
-
Constructor Details
-
Settings
public Settings(double adultTicket, double blockbusterSurcharge, EnumMap<Showtime.ShowType, Double> showSurcharges, EnumMap<Booking.TicketType, Double> ticketSurcharges, EnumMap<Cinema.ClassType, Double> cinemaSurcharges, EnumMap<Settings.RankedType, Boolean> rankedTypes, List<LocalDate> publicHolidays) Instantiates a new Settings.- Parameters:
adultTicket
- the adult ticketblockbusterSurcharge
- the blockbuster surchargeshowSurcharges
- the show surchargesticketSurcharges
- the ticket surchargescinemaSurcharges
- the cinema surchargesrankedTypes
- the ranked typespublicHolidays
- the public holidays
-
Settings
Instantiates a new Settings.- Parameters:
settings
- the settings
-
-
Method Details
-
getAdultTicket
public double getAdultTicket()Gets adult ticket.- Returns:
- the adult ticket
-
setAdultTicket
public void setAdultTicket(double adultTicket) Sets adult ticket.- Parameters:
adultTicket
- the adult ticket
-
getBlockbusterSurcharge
public double getBlockbusterSurcharge()Gets blockbuster surcharge.- Returns:
- the blockbuster surcharge
-
setBlockbusterSurcharge
public void setBlockbusterSurcharge(double blockbusterSurcharge) Sets blockbuster surcharge.- Parameters:
blockbusterSurcharge
- the blockbuster surcharge
-
getShowSurcharges
Gets show surcharges.- Returns:
- the show surcharges
-
setShowSurcharges
Sets show surcharges.- Parameters:
showSurcharges
- the show surcharges
-
getPublicHolidays
Gets public holidays.- Returns:
- the public holidays
-
setPublicHolidays
Sets public holidays.- Parameters:
publicHolidays
- the public holidays
-
getTicketSurcharges
Gets ticket surcharges.- Returns:
- the ticket surcharges
-
setTicketSurcharges
Sets ticket surcharges.- Parameters:
ticketSurcharges
- the ticket surcharges
-
getCinemaSurcharges
Gets cinema surcharges.- Returns:
- the cinema surcharges
-
setCinemaSurcharges
Sets cinema surcharges.- Parameters:
cinemaSurcharges
- the cinema surcharges
-
getRankedTypes
Gets ranked lists.- Returns:
- the ranked lists
-
setRankedTypes
Sets ranked lists.- Parameters:
rankedTypes
- the ranked lists
-
getHolidays
Gets holidays.- Returns:
- the holidays
-
setHolidays
Sets holidays.- Parameters:
publicHolidays
- the public holidays
-
addHoliday
Add holiday.- Parameters:
holiday
- the holiday
-
removeHoliday
Remove holiday boolean.- Parameters:
holiday
- the holiday- Returns:
- the boolean
-
printHolidayTable
Print holiday table list.- Returns:
- the list
-
toString
-