Package org.elypia.webhooker.controller
Class MapClientController
- java.lang.Object
-
- org.elypia.webhooker.controller.MapClientController
-
- All Implemented Interfaces:
Iterable<Client>,ClientController
public class MapClientController extends Object implements ClientController
-
-
Constructor Summary
Constructors Constructor Description MapClientController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Clientadd(Client client)Add an existing client to the client pool.Clientget(UUID uuid)Get a client by UUID.Map<UUID,Client>getAll()Iterator<Client>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elypia.webhooker.controller.ClientController
add, add, get
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
add
public Client add(Client client)
Add an existing client to the client pool.- Specified by:
addin interfaceClientController- Parameters:
client- The existing client that should be added.- Returns:
- The same client that was added.
-
get
public Client get(UUID uuid)
Description copied from interface:ClientControllerGet a client by UUID.- Specified by:
getin interfaceClientController- Parameters:
uuid- The UUID of the client to get.- Returns:
- The client that is represented by this UUID, or null if no such client exists within the context of this controller.
-
getAll
public Map<UUID,Client> getAll()
- Specified by:
getAllin interfaceClientController- Returns:
- An unmodifiable view of all clients.
-
-