jumbo.xml.util
Class Choice3

java.lang.Object
  |
  +--jumbo.xml.util.Choice3

public class Choice3
extends java.lang.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.


Field Summary
static Choice3 one
           
static Choice3 two
           
static Choice3 X
           
static Choice3 Y
           
static Choice3 Z
           
static Choice3 zero
           
 
Method Summary
 int getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X

public static final Choice3 X

Y

public static final Choice3 Y

Z

public static final Choice3 Z

zero

public static final Choice3 zero

one

public static final Choice3 one

two

public static final Choice3 two
Method Detail

getValue

public int getValue()