Package com.alessiodp.parties.api.enums
Enum DeleteCause
- java.lang.Object
-
- java.lang.Enum<DeleteCause>
-
- com.alessiodp.parties.api.enums.DeleteCause
-
- All Implemented Interfaces:
Serializable,Comparable<DeleteCause>
public enum DeleteCause extends Enum<DeleteCause>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BANThe last player or leader has been banned from the serverDELETEThe party has been deletedKICKThe last player or leader has been kicked from the partyLEAVEThe last player or leader left the partyOTHERSOther reasonsTIMEOUTThe party got deleted after all players or leader left the server
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeleteCausevalueOf(String name)Returns the enum constant of this type with the specified name.static DeleteCause[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEAVE
public static final DeleteCause LEAVE
The last player or leader left the party
-
KICK
public static final DeleteCause KICK
The last player or leader has been kicked from the party
-
DELETE
public static final DeleteCause DELETE
The party has been deleted
-
BAN
public static final DeleteCause BAN
The last player or leader has been banned from the server
-
TIMEOUT
public static final DeleteCause TIMEOUT
The party got deleted after all players or leader left the server
-
OTHERS
public static final DeleteCause OTHERS
Other reasons
-
-
Method Detail
-
values
public static DeleteCause[] 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 (DeleteCause c : DeleteCause.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeleteCause 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
-
-