public class UserChannelMap<U extends User,C extends Channel> extends Object
Constructor and Description |
---|
UserChannelMap()
Create with HashMultimaps.
|
Modifier and Type | Method and Description |
---|---|
void |
addUserToChannel(U user,
C channel) |
void |
clear() |
boolean |
containsEntry(U user,
C channel) |
boolean |
containsUser(User user) |
UserChannelMapSnapshot |
createSnapshot(Map<U,UserSnapshot> userSnapshots,
Map<C,ChannelSnapshot> channelSnapshots) |
com.google.common.collect.ImmutableSortedSet<C> |
getChannels(U user) |
com.google.common.collect.ImmutableSortedSet<U> |
getUsers(C channel) |
void |
removeChannel(C channel) |
void |
removeUser(U user) |
void |
removeUserFromChannel(U user,
C channel) |
public void removeUser(U user)
public void removeChannel(C channel)
public boolean containsUser(User user)
public void clear()
public UserChannelMapSnapshot createSnapshot(Map<U,UserSnapshot> userSnapshots, Map<C,ChannelSnapshot> channelSnapshots)
Copyright © 2010–2020 Leon Blakey. All rights reserved.