Class Choice3

java.lang.Object
org.episteme.natural.chemistry.loaders.cml.util.Choice3

public class Choice3 extends 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.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Field Details

    • X

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

      public static final Choice3 Y
      Constant for choice Y (value 1).
    • Z

      public static final Choice3 Z
      Constant for choice Z (value 2).
    • zero

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

      public static final Choice3 one
      Constant for choice one (value 1).
    • two

      public static final Choice3 two
      Constant for choice two (value 2).
  • Method Details

    • getValue

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