Class Choice2

java.lang.Object
org.episteme.natural.chemistry.loaders.cml.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.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Field Details

    • X

      public static final Choice2 X
      Constant for choice X (value 0).
    • Y

      public static final Choice2 Y
      Constant for choice Y (value 1).
    • zero

      public static final Choice2 zero
      Constant for choice zero (value 0).
    • one

      public static final Choice2 one
      Constant for choice one (value 1).
  • Method Details

    • getValue

      public int getValue()
      Returns the integer value of this choice.
      Returns:
      the integer value