public enum BossColor extends Enum<BossColor>
Enum Constant and Description |
---|
BLUE |
GREEN |
PINK |
PURPLE |
RED |
WHITE |
YELLOW |
Modifier and Type | Method and Description |
---|---|
int |
getId() |
static BossColor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BossColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BossColor PINK
public static final BossColor BLUE
public static final BossColor RED
public static final BossColor GREEN
public static final BossColor YELLOW
public static final BossColor PURPLE
public static final BossColor WHITE
public static BossColor[] values()
for (BossColor c : BossColor.values()) System.out.println(c);
public static BossColor 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 nullpublic int getId()
Copyright © 2016–2021. All rights reserved.