jumbo.xml.util
Class Choice2

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

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


Field Summary
static Choice2 one
           
static Choice2 X
           
static Choice2 Y
           
static Choice2 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 Choice2 X

Y

public static final Choice2 Y

zero

public static final Choice2 zero

one

public static final Choice2 one
Method Detail

getValue

public int getValue()