Package moblima.entities
Class Showtime
java.lang.Object
moblima.entities.Showtime
The type Showtime.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionShowtime
(String id, int cinemaId, int movieId, LocalDateTime datetime, Showtime.ShowType type) Instantiates a new Showtime.Showtime
(String id, int cinemaId, int movieId, LocalDateTime datetime, Showtime.ShowType type, boolean[][] seats) Instantiates a new Showtime.Instantiates a new Showtime. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Gets cinema id.Gets datetime.getDay()
Gets day.Gets formatted datetime.getId()
Gets id.int
Gets movie id.int
Gets seat count.int
getSeatCount
(boolean isAvailable) Gets seat count.boolean[][]
getSeats()
Get seats boolean [ ] [ ].getType()
Gets type.int
hashCode()
void
setCinemaId
(int cinemaId) Sets cinema id.void
setDatetime
(LocalDateTime datetime) Sets datetime.void
Sets id.void
setMovieId
(int movieId) Sets movie id.void
setSeats
(boolean[][] seats) Sets seats.void
setType
(Showtime.ShowType type) Sets type.toString()
-
Constructor Details
-
Showtime
public Showtime(String id, int cinemaId, int movieId, LocalDateTime datetime, Showtime.ShowType type, boolean[][] seats) Instantiates a new Showtime.- Parameters:
id
- the idcinemaId
- the cinema idmovieId
- the movie iddatetime
- the datetimetype
- the typeseats
- the seats
-
Showtime
public Showtime(String id, int cinemaId, int movieId, LocalDateTime datetime, Showtime.ShowType type) Instantiates a new Showtime.- Parameters:
id
- the idcinemaId
- the cinema idmovieId
- the movie iddatetime
- the datetimetype
- the type
-
Showtime
Instantiates a new Showtime.- Parameters:
cloneShowtime
- the clone showtime
-
-
Method Details
-
getId
Gets id.- Returns:
- the id
-
setId
Sets id.- Parameters:
id
- the id
-
getCinemaId
public int getCinemaId()Gets cinema id.- Returns:
- the cinema id
-
setCinemaId
public void setCinemaId(int cinemaId) Sets cinema id.- Parameters:
cinemaId
- the cinema id
-
getMovieId
public int getMovieId()Gets movie id.- Returns:
- the movie id
-
setMovieId
public void setMovieId(int movieId) Sets movie id.- Parameters:
movieId
- the movie id
-
getDatetime
Gets datetime.- Returns:
- the datetime
-
setDatetime
Sets datetime.- Parameters:
datetime
- the datetime
-
getType
Gets type.- Returns:
- the type
-
setType
Sets type.- Parameters:
type
- the type
-
getSeats
public boolean[][] getSeats()Get seats boolean [ ] [ ].- Returns:
- the boolean [ ] [ ]
-
setSeats
public void setSeats(boolean[][] seats) Sets seats.- Parameters:
seats
- the seats
-
getDay
Gets day.- Returns:
- the day
-
getFormattedDatetime
Gets formatted datetime.- Returns:
- the formatted datetime
-
getSeatCount
public int getSeatCount(boolean isAvailable) Gets seat count.- Parameters:
isAvailable
- the is available- Returns:
- the seat count
-
getSeatCount
public int getSeatCount()Gets seat count.- Returns:
- the seat count
-
toString
-
equals
-
hashCode
public int hashCode()
-