Answer the question
In order to leave comments, you need to log in
How to help Java decide on types?
There is a code:
listenForWhisper(socketManager.<MessagingUser>presenceChannel("dialog-" + dialog.getId()),
WhisperEvent.EVENT_TYPING, TypingEvent.class);
public <T> SocketChannel listenForWhisper(SocketPresenceChannel<T> channel, String name,
Class<? extends WhisperEvent<T>> event) {
if (!channels.containsKey(channel.getName())) {
channels.put(channel.getName(), channel);
}
return channel.listenForWhisper(name, event);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question