powered by Jive Software

switch(Message.Type.XXXX)

I know it not a true Smack-related question, but how would you perform a **swich **on Message.Type.XXXX?

For example,

public void processMessage(final Message message) {

switch(message.getType()) {

case Message.Type.CHAT:

break;

}

}

P.S. Smack’'s Message.Type is not a true type-safe enum cuz it has no .values() method in it

Message was edited by: syncat