Class SeatReservation
java.lang.Object
de.gustavblass.fsu.fmi.roombooking.model.reservation.Reservation
de.gustavblass.fsu.fmi.roombooking.model.reservation.SeatReservation
- All Implemented Interfaces:
Identified, Comparable<Reservation>
A
Reservation for just a subset of all seats available in the Reservation.room, i.e. not for the entire Room.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intHow many seats theReservation.applicantintends to occupy. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Reservation
addRequiredCommonEquipment, addRequiredIndividualEquipment, compareTo, computeScore, getRequiredCommonEquipment, getRequiredIndividualEquipment, matches, removeAllRequiredCommonEquipment, removeAllRequiredCommonEquipment, removeAllRequiredIndividualEquipment, removeAllRequiredIndividualEquipment, removeRequiredCommonEquipment, removeRequiredIndividualEquipmentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Identified
getId
-
Field Details
-
count
private int countHow many seats theReservation.applicantintends to occupy.
-
-
Constructor Details
-
SeatReservation
public SeatReservation()
-
-
Method Details
-
setCount
public void setCount(@Range(from=1L,to=2147483647L) int count) throws de.gustavblass.commons.exceptions.IllegalArgumentException Updates thecount.- Parameters:
count- The new number of seats. Must be greater than zero.- Throws:
de.gustavblass.commons.exceptions.IllegalArgumentException- If the given seat count is less than one.- Implementation Note:
- The
Rangeannotation is just for documentation and does not actually validate the input.
-