Enum Class Corporation.JoinType
java.lang.Object
java.lang.Enum<Corporation.JoinType>
us.teaminceptus.novaconomy.api.corporation.Corporation.JoinType
- All Implemented Interfaces:
Serializable,Comparable<Corporation.JoinType>,Constable
- Enclosing class:
- Corporation
Represents the joining type of a Corporation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents a Corporation that can only be joined by invitation.Represents a Corporation that is private and cannot be joined by anyone.Represents a Corporation that is public and joinable by anyone. -
Method Summary
Modifier and TypeMethodDescriptionstatic Corporation.JoinTypeReturns the enum constant of this class with the specified name.static Corporation.JoinType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PUBLIC
Represents a Corporation that is public and joinable by anyone. -
INVITE_ONLY
Represents a Corporation that can only be joined by invitation. -
PRIVATE
Represents a Corporation that is private and cannot be joined by anyone.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-