Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mil.navy.nps.disEnumerations.ParameterTypeAttachedPartsField
This is effectively a C-style enumeration. Java doesn't do enumerations like C, so you have to wrap a class around it. It's a bit more typing, but pretty simple-minded. Note that the variables are declared public. The default for access is package-wide, but these variables might need to be accessed from outside the package. Since all the variables are final, nobody can change anything anyway, so this is no biggie.
To use these enumerations in your Java code, import the package first:
import mil.navy.nps.disEnumerations.*;
You access this via something like ParameterTypeAttachedPartsField.M2MACHINEGUN;
the class name, a period, and the class variable name.
Field Summary | |
static long | AAWSMJAVELIN
(902) |
static long | M136AT4
(900) |
static long | M16A42RIFLE
(896) |
static long | M18A1CLAYMOREMINE
(903) |
static long | M203GRENADELAUNCHER
(899) |
static long | M249SAW
(897) |
static long | M2MACHINEGUN
(905) |
static long | M47DRAGON
(901) |
static long | M60MACHINEGUN
(898) |
static long | MK19GRENADELAUNCHER
(904) |
static long | NOTHINGEMPTY
(0) |
Method Summary | |
java.lang.String | toString(int idNumber)
|
Methods inherited from class java.lang.Object | |
Field Detail |
public static final long NOTHINGEMPTY
public static final long M16A42RIFLE
public static final long M249SAW
public static final long M60MACHINEGUN
public static final long M203GRENADELAUNCHER
public static final long M136AT4
public static final long M47DRAGON
public static final long AAWSMJAVELIN
public static final long M18A1CLAYMOREMINE
public static final long MK19GRENADELAUNCHER
public static final long M2MACHINEGUN
Method Detail |
public java.lang.String toString(int idNumber)
Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |