public static enum Ruleset.ShipRules extends java.lang.Enum<Ruleset.ShipRules>
Enum Constant and Description |
---|
AIR_CARRIER |
BATTLESHIP |
CRUISER |
SUBMARINE |
Modifier and Type | Method and Description |
---|---|
int |
getInstancesNumber() |
int |
getSize() |
java.lang.String |
toString() |
static Ruleset.ShipRules |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Ruleset.ShipRules[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Ruleset.ShipRules SUBMARINE
public static final Ruleset.ShipRules CRUISER
public static final Ruleset.ShipRules BATTLESHIP
public static final Ruleset.ShipRules AIR_CARRIER
public static Ruleset.ShipRules[] values()
for (Ruleset.ShipRules c : Ruleset.ShipRules.values()) System.out.println(c);
public static Ruleset.ShipRules valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<Ruleset.ShipRules>
public int getInstancesNumber()
public int getSize()