Enum Constant and Description |
---|
BAN
Mode 'Ban'.
|
HALFOP
Mode 'Half-Operator'.
|
INVITE
Mode 'Invite'.
|
LIMIT
Mode 'Limit'.
|
OPERATOR
Mode 'Operator'.
|
OWNER
Mode 'Owner'.
|
PRIVATE
Mode 'Private'.
|
SECRET
Mode 'Secret'.
|
UNKNOWN
Instance for unknown mode type.
|
VOICE
Mode 'Voice'.
|
Modifier and Type | Method and Description |
---|---|
static Mode |
bySymbol(char symbol)
Find Mode instance by mode char.
|
ChatRoomMemberRole |
getRole()
Get corresponding ChatRoomMemberRole instance if available or null
otherwise.
|
char |
getSymbol()
Get character symbol for mode.
|
static Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mode UNKNOWN
public static final Mode OWNER
public static final Mode OPERATOR
public static final Mode HALFOP
public static final Mode VOICE
public static final Mode LIMIT
public static final Mode PRIVATE
public static final Mode SECRET
public static final Mode INVITE
public static final Mode BAN
public static Mode[] values()
for (Mode c : Mode.values()) System.out.println(c);
public static Mode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Mode bySymbol(char symbol) throws UnknownModeException
symbol
- mode charUnknownModeException
- throws exception in case of unknown mode
symbolpublic char getSymbol()
public ChatRoomMemberRole getRole()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.