public enum JoinCause extends Enum<JoinCause>
Enum Constant and Description |
---|
ASK
Caused by ask command then accepted
|
INVITE
Caused by invite command then accepted
|
JOIN
Caused by join command
|
OTHERS
Other reasons
|
Modifier and Type | Method and Description |
---|---|
static JoinCause |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JoinCause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JoinCause ASK
public static final JoinCause INVITE
public static final JoinCause JOIN
public static final JoinCause OTHERS
public static JoinCause[] values()
for (JoinCause c : JoinCause.values()) System.out.println(c);
public static JoinCause valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2023. All rights reserved.