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

Variable Index

 o one
 o X
 o Y
 o zero

Method Index

 o getValue()

Variables

 o X
  public final static Choice2 X
 o Y
  public final static Choice2 Y
 o zero
  public final static Choice2 zero
 o one
  public final static Choice2 one

Methods

 o getValue
  public int getValue()

All Packages  Class Hierarchy  This Package  Previous  Next  Index