Skip to content

Commit fdf0774

Browse files
chore: add room id value object
1 parent 71c3a4e commit fdf0774

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/env/entity/room/RoomID.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2023. Smart Operating Block
3+
*
4+
* Use of this source code is governed by an MIT-style
5+
* license that can be found in the LICENSE file or at
6+
* https://opensource.org/licenses/MIT.
7+
*/
8+
9+
package entity.room;
10+
11+
/**
12+
* Room identifier.
13+
*/
14+
public class RoomID {
15+
private final String id;
16+
17+
/**
18+
* Default constructor.
19+
* @param id the id.
20+
*/
21+
public RoomID(final String id) {
22+
this.id = id;
23+
}
24+
25+
/**
26+
* Get the id.
27+
* @return the id.
28+
*/
29+
public String getId() {
30+
return this.id;
31+
}
32+
}

0 commit comments

Comments
 (0)