Enum Class BFSAssetType
- All Implemented Interfaces:
Serializable,Comparable<BFSAssetType>,Constable
The rules category of a Battlefield Support Asset. This is NOT printed on the Asset card, but it must be recorded
because some Battlefield Support rules only affect Assets of a particular type.
The asset type is deliberately independent of the Asset's movement mode
(EntityMovementMode); unusual combinations such as VTOL-movement infantry are permitted
by the data model even where rules for them do not yet exist. Combat and Support vehicles are not distinguished -
both are VEHICLE.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic BFSAssetTypefromString(String value) Parses the given string into aBFSAssetType, tolerating the enum name, the display name and a handful of common aliases (case-insensitively).static BFSAssetTypeReturns the enum constant of this class with the specified name.static BFSAssetType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VEHICLE
-
CONV_INFANTRY
-
BATTLE_ARMOR
-
EMPLACEMENT
-
-
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
-
displayName
-
fromString
Parses the given string into aBFSAssetType, tolerating the enum name, the display name and a handful of common aliases (case-insensitively). Returnsnullif no match is found.- Parameters:
value- the string to parse- Returns:
- the matching type, or
nullif unrecognized
-