Package com.alessiodp.parties.api.enums
Enum LeaveCause
- java.lang.Object
-
- java.lang.Enum<LeaveCause>
-
- com.alessiodp.parties.api.enums.LeaveCause
-
- All Implemented Interfaces:
Serializable,Comparable<LeaveCause>
public enum LeaveCause extends Enum<LeaveCause>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LeaveCausevalueOf(String name)Returns the enum constant of this type with the specified name.static LeaveCause[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEAVE
public static final LeaveCause LEAVE
The player left the party
-
KICK
public static final LeaveCause KICK
The player has been kicked from the party
-
BAN
public static final LeaveCause BAN
The player has been banned from the server
-
TIMEOUT
public static final LeaveCause TIMEOUT
The player got kicked after leaving the server
-
OTHERS
public static final LeaveCause OTHERS
Other reasons
-
-
Method Detail
-
values
public static LeaveCause[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LeaveCause c : LeaveCause.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LeaveCause valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-