Class pmr.util.Choice3
All Packages Class Hierarchy This Package Previous Next Index
Class pmr.util.Choice3
java.lang.Object
|
+----pmr.util.Choice3
- public class Choice3
- extends Object
offers the choice of 0, 1 or 2; useful to restrict argument values
(rather like enum).
The user cannot access the constructor so has to use Choice3.Y, etc.
- Author:
- (C) P. Murray-Rust, 1996
-
one
-
-
two
-
-
X
-
-
Y
-
-
Z
-
-
zero
-
-
getValue()
-
X
public final static Choice3 X
Y
public final static Choice3 Y
Z
public final static Choice3 Z
zero
public final static Choice3 zero
one
public final static Choice3 one
two
public final static Choice3 two
getValue
public int getValue()
All Packages Class Hierarchy This Package Previous Next Index