Enum BracketType
- java.lang.Object
-
- java.lang.Enum<BracketType>
-
- com.github.gpluscb.ggjava.entity.enums.BracketType
-
- All Implemented Interfaces:
GGEnum
,GGEntity
,GGObject
,java.io.Serializable
,java.lang.Comparable<BracketType>
public enum BracketType extends java.lang.Enum<BracketType> implements GGEnum
The type of Bracket format that a Phase is configured with.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CIRCUIT
CUSTOM_SCHEDULE
DOUBLE_ELIMINATION
ELIMINATION_ROUNDS
EXHIBITION
MATCHMAKING
RACE
ROUND_ROBIN
SINGLE_ELIMINATION
SWISS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityType
getGGEntityType()
static BracketType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BracketType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE_ELIMINATION
public static final BracketType SINGLE_ELIMINATION
-
DOUBLE_ELIMINATION
public static final BracketType DOUBLE_ELIMINATION
-
ROUND_ROBIN
public static final BracketType ROUND_ROBIN
-
SWISS
public static final BracketType SWISS
-
EXHIBITION
public static final BracketType EXHIBITION
-
CUSTOM_SCHEDULE
public static final BracketType CUSTOM_SCHEDULE
-
MATCHMAKING
public static final BracketType MATCHMAKING
-
ELIMINATION_ROUNDS
public static final BracketType ELIMINATION_ROUNDS
-
RACE
public static final BracketType RACE
-
CIRCUIT
public static final BracketType CIRCUIT
-
-
Method Detail
-
values
public static BracketType[] 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 (BracketType c : BracketType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BracketType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getGGEntityType
@Nonnull public EntityType getGGEntityType()
- Specified by:
getGGEntityType
in interfaceGGEntity
-
-