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