public class RoomList extends Object
Constructor and Description |
---|
RoomList() |
Modifier and Type | Method and Description |
---|---|
void |
addRoom(ChatRoom room)
Add a room in the list
|
ChatRoom |
getRoom(String strName)
Returns the chat room of the list whose name is the one specified in parameter
|
Enumeration |
getRooms()
Returns the list of the Rooms
|
void |
removeRooms(String[] rooms)
Remove rooms in the list
|
public void addRoom(ChatRoom room)
room
- The chat room to addpublic ChatRoom getRoom(String strName)
strName
- The name of the room to get in the listpublic Enumeration getRooms()
public void removeRooms(String[] rooms)
rooms
- An array of rooms to remove in the listCopyright © 2018 City of Paris. All rights reserved.