-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRoom.java
More file actions
68 lines (56 loc) · 1.02 KB
/
Room.java
File metadata and controls
68 lines (56 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import java.time.LocalDate;
import java.time.temporal.ChronoUnit;
public class Room {
private boolean available;
private String roomType;
private int roomNumber;
/**
* Return the current status of the room
*
* @return the current status of the room
*/
public boolean isAvailable() {
return available;
}
/**
* Return the room type
*
* @return the room type
*/
public String getRoomType() {
return roomType;
}
/**
* Return the room number
*
* @return the room number
*/
public int getRoomNumber() {
return roomNumber;
}
/**
* Set the current status of the room
*
* @param status
* the new status of the room
*/
public void setAvailable(boolean status) {
available = status;
}
/**
* Set the room type
*
* @param rType
* the new room type
*/
public void setRoomType(String rType) {
roomType = rType;
}
/**
* Set the room number
* @param rNumber the new room number
*/
public void setRoomNumber(int rNumber) {
roomNumber = rNumber;
}
}