org.jscience.ml.cml.util
Class Choice3

java.lang.Object
  extended by org.jscience.ml.cml.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
          DOCUMENT ME!
static Choice3 two
          DOCUMENT ME!
static Choice3 X
          DOCUMENT ME!
static Choice3 Y
          DOCUMENT ME!
static Choice3 Z
          DOCUMENT ME!
static Choice3 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 Choice3 X
DOCUMENT ME!


Y

public static final Choice3 Y
DOCUMENT ME!


Z

public static final Choice3 Z
DOCUMENT ME!


zero

public static final Choice3 zero
DOCUMENT ME!


one

public static final Choice3 one
DOCUMENT ME!


two

public static final Choice3 two
DOCUMENT ME!

Method Detail

getValue

public int getValue()
DOCUMENT ME!

Returns:
DOCUMENT ME!