Class Choice2
java.lang.Object
org.episteme.natural.chemistry.loaders.cml.util.Choice2
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 Summary
Fields -
Method Summary
-
Field Details
-
X
Constant for choice X (value 0). -
Y
Constant for choice Y (value 1). -
zero
Constant for choice zero (value 0). -
one
Constant for choice one (value 1).
-
-
Method Details
-
getValue
public int getValue()Returns the integer value of this choice.- Returns:
- the integer value
-