Class Showtime

java.lang.Object
moblima.entities.Showtime

public class Showtime extends Object
The type Showtime.
  • 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 id
      cinemaId - the cinema id
      movieId - the movie id
      datetime - the datetime
      type - the type
      seats - the seats
    • Showtime

      public Showtime(String id, int cinemaId, int movieId, LocalDateTime datetime, Showtime.ShowType type)
      Instantiates a new Showtime.
      Parameters:
      id - the id
      cinemaId - the cinema id
      movieId - the movie id
      datetime - the datetime
      type - the type
    • Showtime

      public Showtime(Showtime cloneShowtime)
      Instantiates a new Showtime.
      Parameters:
      cloneShowtime - the clone showtime
  • Method Details

    • getId

      public String getId()
      Gets id.
      Returns:
      the id
    • setId

      public void setId(String id)
      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

      public LocalDateTime getDatetime()
      Gets datetime.
      Returns:
      the datetime
    • setDatetime

      public void setDatetime(LocalDateTime datetime)
      Sets datetime.
      Parameters:
      datetime - the datetime
    • getType

      public Showtime.ShowType getType()
      Gets type.
      Returns:
      the type
    • setType

      public void setType(Showtime.ShowType type)
      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

      public DayOfWeek getDay()
      Gets day.
      Returns:
      the day
    • getFormattedDatetime

      public String 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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object