public enum MunitionCategory extends java.lang.Enum<MunitionCategory> implements Category
Enum Constant and Description |
---|
BALLISTIC
Ballistic
|
FIXED
Fixed
|
GUIDED
Guided
|
OTHER
Other
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
static int |
getEnumBitWidth() |
static MunitionCategory |
getEnumForValue(int i) |
int |
getMarshalledSize() |
int |
getValue() |
void |
marshal(java.nio.ByteBuffer buff) |
void |
marshal(java.io.DataOutputStream dos) |
static MunitionCategory |
unmarshalEnum(java.nio.ByteBuffer buff) |
static MunitionCategory |
unmarshalEnum(java.io.DataInputStream dis) |
static MunitionCategory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MunitionCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MunitionCategory OTHER
public static final MunitionCategory GUIDED
public static final MunitionCategory BALLISTIC
public static final MunitionCategory FIXED
public static MunitionCategory[] values()
for (MunitionCategory c : MunitionCategory.values()) System.out.println(c);
public static MunitionCategory 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 getDescription()
getDescription
in interface Category
public static int getEnumBitWidth()
public static MunitionCategory getEnumForValue(int i)
public void marshal(java.io.DataOutputStream dos) throws java.io.IOException
java.io.IOException
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
java.lang.Exception
public static MunitionCategory unmarshalEnum(java.io.DataInputStream dis) throws java.lang.Exception
java.lang.Exception
public static MunitionCategory unmarshalEnum(java.nio.ByteBuffer buff) throws java.lang.Exception
java.lang.Exception
public int getMarshalledSize()