org.jscience.ml.cml.util
Class Choice2

java.lang.Object
  extended by org.jscience.ml.cml.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
          DOCUMENT ME!
static Choice2 X
          DOCUMENT ME!
static Choice2 Y
          DOCUMENT ME!
static Choice2 zero
          DOCUMENT ME!
 
Method Summary
 int getValue()
          DOCUMENT ME!
 
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
DOCUMENT ME!


Y

public static final Choice2 Y
DOCUMENT ME!


zero

public static final Choice2 zero
DOCUMENT ME!


one

public static final Choice2 one
DOCUMENT ME!

Method Detail

getValue

public int getValue()
DOCUMENT ME!

Returns:
DOCUMENT ME!