public enum ShipTypeColor extends Enum<ShipTypeColor>
| Enum Constant and Description |
|---|
BLUE
Blue ship type color.
|
GREEN
Green ship type color.
|
GREY
Grey ship type color.
|
ORANGE
Orange ship type color.
|
PURPLE
Purple ship type color.
|
RED
Red ship type color.
|
TURQUOISE
Turquoise ship type color.
|
YELLOW
Yellow ship type color.
|
| Modifier and Type | Method and Description |
|---|---|
static ShipTypeColor |
getColor(ShipTypeCargo.ShipType type)
Gets color.
|
ShipTypeCargo.ShipType[] |
getShipTypes()
Get ship types ship type [ ].
|
static ShipTypeColor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShipTypeColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShipTypeColor BLUE
public static final ShipTypeColor GREY
public static final ShipTypeColor GREEN
public static final ShipTypeColor ORANGE
public static final ShipTypeColor PURPLE
public static final ShipTypeColor RED
public static final ShipTypeColor TURQUOISE
public static final ShipTypeColor YELLOW
public static ShipTypeColor[] values()
for (ShipTypeColor c : ShipTypeColor.values()) System.out.println(c);
public static ShipTypeColor 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 ShipTypeCargo.ShipType[] getShipTypes()
public static ShipTypeColor getColor(ShipTypeCargo.ShipType type)
type - the typeCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.