Class Choice3
java.lang.Object
org.episteme.natural.chemistry.loaders.cml.util.Choice3
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Choice3Constant for choice one (value 1).static final Choice3Constant for choice two (value 2).static final Choice3Constant for choice X (value 0).static final Choice3Constant for choice Y (value 1).static final Choice3Constant for choice Z (value 2).static final Choice3Constant for choice zero (value 0). -
Method Summary
-
Field Details
-
X
Constant for choice X (value 0). -
Y
Constant for choice Y (value 1). -
Z
Constant for choice Z (value 2). -
zero
Constant for choice zero (value 0). -
one
Constant for choice one (value 1). -
two
Constant for choice two (value 2).
-
-
Method Details
-
getValue
public int getValue()Returns the integer value of this choice.- Returns:
- the integer value
-