diff --git a/src/main/java/com/ntlab/irisserver/models/RoomManager.java b/src/main/java/com/ntlab/irisserver/models/RoomManager.java index 0ad8cf7..e3fef6e 100644 --- a/src/main/java/com/ntlab/irisserver/models/RoomManager.java +++ b/src/main/java/com/ntlab/irisserver/models/RoomManager.java @@ -12,14 +12,14 @@ private static RoomManager theInstance = null; private Map rooms = new HashMap(); - public static RoomManager getInstance(){ - if(theInstance == null){ + public static RoomManager getInstance() { + if(theInstance == null) { theInstance = new RoomManager(); } return theInstance; } - public Room createRoom(String owner){ + public Room createRoom(String owner) { UUID uuid = UUID.randomUUID(); String rid = uuid.toString(); //uuid型からstring型に変換 Room r = new Room(rid, owner); @@ -27,12 +27,12 @@ return r; } - public Room getRoom(String rid){ + public Room getRoom(String rid) { Room r = rooms.get(rid); return r; } - public void deleteRoom(String rid){ + public void deleteRoom(String rid) { rooms.remove(rid); }