JPP: Add todo for ENUM_SPACE_MUTEX interface design pattern taste check

This commit is contained in:
Willem Cazander 2025-09-08 11:48:18 +02:00
parent 72b2bd1ab5
commit ce8bb48cef
6 changed files with 22 additions and 7 deletions

View file

@ -24,8 +24,6 @@ package org.x4o.fc18.cake2.zero33;
import java.util.Optional;
import org.x4o.fc18.octal8.PrimordialOctal;
///
/// A dice saw to cut the CDC1604 in multiple octal parts.
///
@ -60,10 +58,6 @@ public enum FCDotCDC1604DiceSaw {
return ordinal() >= FACE_4NY.ordinal();
}
public FCDotCDC1604DashP6 encodeOctal(PrimordialOctal octal) {
return encodeOctal(octal.ordinal());
}
public FCDotCDC1604DashP6 encodeOctal(int value) {
int octalIdx = (value >> shiftValue) & 0b111;
if (octalIdx < 0) {

View file

@ -26,6 +26,7 @@ import java.math.BigInteger;
import org.x4o.fc18.cake2.FourCornerDotCake;
import org.x4o.fc18.cake2.zero33.dec1.FCDotDEC2701DashPX0;
import org.x4o.fc18.octal8.PrimordialOctal;
import org.x4o.fc18.zion7.FourCornerZionStenoPetroglyphs;
/// The supported choco sand dune formations.
@ -87,4 +88,8 @@ public enum FCFlameFremanChocoBase8 implements FCFlameFremanSuit {
static public FCFlameFremanChocoBase8 valueOf(int idx) {
return VALUES[idx];
}
static public FCFlameFremanChocoBase8 valueOf(PrimordialOctal octal) {
return valueOf(octal.ordinal());
}
}

View file

@ -26,6 +26,7 @@ import java.math.BigInteger;
import org.x4o.fc18.cake2.FourCornerDotCake;
import org.x4o.fc18.cake2.zero33.dec1.FCDotDEC2701DashPX0;
import org.x4o.fc18.octal8.PrimordialOctal;
import org.x4o.fc18.zion7.FourCornerZionStenoPetroglyphs;
/// The supported lego sand man bait marks.
@ -87,4 +88,8 @@ public enum FCFlameFremanLegoBase2 implements FCFlameFremanSuit {
static public FCFlameFremanLegoBase2 valueOf(int idx) {
return VALUES[idx];
}
static public FCFlameFremanLegoBase2 valueOf(PrimordialOctal octal) {
return valueOf(octal.ordinal());
}
}

View file

@ -26,6 +26,7 @@ import java.math.BigInteger;
import org.x4o.fc18.cake2.FourCornerDotCake;
import org.x4o.fc18.cake2.zero33.dec1.FCDotDEC2701DashPX0;
import org.x4o.fc18.octal8.PrimordialOctal;
import org.x4o.fc18.zion7.FourCornerZionStenoPetroglyphs;
/// The supported lego sand dune formations.
@ -87,4 +88,8 @@ public enum FCFlameFremanLegoBase8 implements FCFlameFremanSuit {
static public FCFlameFremanLegoBase8 valueOf(int idx) {
return VALUES[idx];
}
static public FCFlameFremanLegoBase8 valueOf(PrimordialOctal octal) {
return valueOf(octal.ordinal());
}
}

View file

@ -26,6 +26,7 @@ import java.math.BigInteger;
import org.x4o.fc18.cake2.FourCornerDotCake;
import org.x4o.fc18.cake2.zero33.dec1.FCDotDEC2701DashPX0;
import org.x4o.fc18.octal8.PrimordialOctal;
import org.x4o.fc18.zion7.FourCornerZionStenoPetroglyphs;
/// The supported signed sand man bait marks.
@ -87,4 +88,8 @@ public enum FCFlameFremanSignedBase2 implements FCFlameFremanSuit {
static public FCFlameFremanSignedBase2 valueOf(int idx) {
return VALUES[idx];
}
static public FCFlameFremanSignedBase2 valueOf(PrimordialOctal octal) {
return valueOf(octal.ordinal());
}
}