forked from melih23/test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRoom.java
53 lines (48 loc) · 947 Bytes
/
Room.java
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
package chapter5;
/**
* Simple Room abstraction -- used to store the room capacity and compare against the student Group's size.
*/
public class Room {
private final int roomId;
private final String roomNumber;
private final int capacity;
/**
* Initialize new Room
*
* @param roomId
* The ID for this classroom
* @param roomNumber
* The room number
* @param capacity
* The room capacity
*/
public Room(int roomId, String roomNumber, int capacity) {
this.roomId = roomId;
this.roomNumber = roomNumber;
this.capacity = capacity;
}
/**
* Return roomId
*
* @return roomId
*/
public int getRoomId() {
return this.roomId;
}
/**
* Return room number
*
* @return roomNumber
*/
public String getRoomNumber() {
return this.roomNumber;
}
/**
* Return room capacity
*
* @return capacity
*/
public int getRoomCapacity() {
return this.capacity;
}
}