Enum Class FCDotCDC1604DiceSaw
- All Implemented Interfaces:
Serializable, Comparable<FCDotCDC1604DiceSaw>, Constable
A dice saw to cut the CDC1604 in multiple octal parts.
- Version:
- 1.0 Sep 6, 2025
- Author:
- Willem Cazander
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintdecodeOctal(int value, int cakePoint) intdecodeOctalHigh(int value, int cakePoint) encodeOctal(int value) encodeOctalHigh(int value) booleanbooleanstatic FCDotCDC1604DiceSawvalueOf(int idx) Returns the enum constant of this class with the specified name.static FCDotCDC1604DiceSawReturns the enum constant of this class with the specified name.static Optional<FCDotCDC1604DiceSaw> valueOfCakePoint(int cakePoint) static FCDotCDC1604DiceSaw[]values()Returns an array containing the constants of this enum class, in the order they are declared.static int
-
Enum Constant Details
-
FACE_1NX
-
FACE_2NX
-
FACE_3NX
-
FACE_4NY
-
FACE_5NY
-
FACE_6NY
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
sideNothingX
public boolean sideNothingX() -
sideNothingY
public boolean sideNothingY() -
encodeOctalHigh
-
encodeOctal
-
decodeOctalHigh
public int decodeOctalHigh(int value, int cakePoint) -
decodeOctal
public int decodeOctal(int value, int cakePoint) -
valuesLength
public static int valuesLength() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
idx- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
valueOfCakePoint
-