diff --git a/gdxapp4d-app-glyphdemo/src/main/java/love/distributedrebirth/gdxapp4d/app/glyphdemo/apps/DemoUnitConverterDeskApp.java b/gdxapp4d-app-glyphdemo/src/main/java/love/distributedrebirth/gdxapp4d/app/glyphdemo/apps/DemoUnitConverterDeskApp.java index 8e9d08de..da9738ea 100644 --- a/gdxapp4d-app-glyphdemo/src/main/java/love/distributedrebirth/gdxapp4d/app/glyphdemo/apps/DemoUnitConverterDeskApp.java +++ b/gdxapp4d-app-glyphdemo/src/main/java/love/distributedrebirth/gdxapp4d/app/glyphdemo/apps/DemoUnitConverterDeskApp.java @@ -17,8 +17,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.AbstractDeskApp; import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.DeskAppContourSection; import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.DeskAppRenderer; -import love.distributedrebirth.numberxd.base2t.part.T10PartDecimal; -import love.distributedrebirth.numberxd.base2t.part.T16PartHex; +import love.distributedrebirth.numberxd.unicode.BaseGlyphSet; import net.forwardfire.unitxc.UnitXCManager; import net.forwardfire.unitxc.model.UnitXCGroup; import net.forwardfire.unitxc.model.UnitXCType; @@ -38,6 +37,7 @@ public class DemoUnitConverterDeskApp extends AbstractDeskApp implements DeskApp private final ImInt unitTypeLimit = new ImInt(5432); private final List convertFromTypes; private final BigInteger totalUnits; + private final ImInt selectedNumberGlyph = new ImInt(); private String[] convertFromTypeNames; public DemoUnitConverterDeskApp(UnitXCManager unitManager) { @@ -76,9 +76,21 @@ public class DemoUnitConverterDeskApp extends AbstractDeskApp implements DeskApp @Override public void render() { - String amount10 = totalUnits.toString(T10PartDecimal.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()); - String amount16 = totalUnits.toString(T16PartHex.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()); - ImGui.text("Total units loaded: "+amount10+" ("+amount16+")"); + List bases = new ArrayList<>(); + for (BaseGlyphSet base:BaseGlyphSet.values()) { + bases.add(base.name()); + } + String[] items = new String[bases.size()]; + items = bases.toArray(items); + ImGui.combo("HexType", selectedNumberGlyph, items); + String selectedItem = items[selectedNumberGlyph.get()]; + BaseGlyphSet hexNumber = BaseGlyphSet.valueOf(selectedItem); + + //String amount10 = totalUnits.toString(T10PartDecimal.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()); + String amount10 = BaseGlyphSet.LATIN_BASIC.BȍőnPrintNumber10(totalUnits); + String amount16 = hexNumber.BȍőnPrintNumber16(totalUnits); + + ImGui.text("Total units loaded: "+amount10+" (0x"+amount16+")"); // TODO: don't do update on render thread if (ImGui.inputDouble("ConvertValue", convertValue)) { diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőn.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőn.java new file mode 100644 index 00000000..19fdb0d4 --- /dev/null +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőn.java @@ -0,0 +1,45 @@ +package love.distributedrebirth.bassboonyd; + +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.locks.Lock; +import java.util.concurrent.locks.ReadWriteLock; +import java.util.concurrent.locks.ReentrantReadWriteLock; + +@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") +public interface BãßBȍőn extends BãßBȍőnCoffinStoreʸᴰ { + + static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { + private static final Map> GRAVE_YARD = new HashMap<>(); + private static final ReadWriteLock FUNERAL = new ReentrantReadWriteLock(); + } + + @SuppressWarnings("unchecked") + default T BȍőnCoffinHeadStoneʸᴰ() { + return (T) this; + } + + @SuppressWarnings("unchecked") + @Override + default BãßBȍőnCoffinʸᴰ GET_BBC() { + BãßBȍőnCoffinOpenʸᴰ zombieCoffin = null; + Lock bibleReader = Ꝑŕḯṿª₮ḕ.FUNERAL.readLock(); // Can't force enum only, thus no jvm safety + bibleReader.lock(); + try { + zombieCoffin = (BãßBȍőnCoffinOpenʸᴰ) Ꝑŕḯṿª₮ḕ.GRAVE_YARD.get(BȍőnCoffinHeadStoneʸᴰ()); + } finally { + bibleReader.unlock(); + } + if (zombieCoffin == null) { + Lock shemiraWriter = Ꝑŕḯṿª₮ḕ.FUNERAL.writeLock(); + shemiraWriter.lock(); + try { + zombieCoffin = BãßBȍőnCoffinOpenʸᴰ.newInstance(); + Ꝑŕḯṿª₮ḕ.GRAVE_YARD.put(BȍőnCoffinHeadStoneʸᴰ(), zombieCoffin); + } finally { + shemiraWriter.unlock(); + } + } + return zombieCoffin; + } +} diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinGhostʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinGhostʸᴰ.java new file mode 100644 index 00000000..8030b783 --- /dev/null +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinGhostʸᴰ.java @@ -0,0 +1,91 @@ +package love.distributedrebirth.bassboonyd; + +import java.util.List; +import java.util.Map; + +@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") +public interface BãßBȍőnCoffinGhostʸᴰ { + + Object PUT_GHOST(String key, Object value); + + Object GHOST_OBJ(String key); + + @SuppressWarnings("unchecked") + default Y GHOST_OBJ(String key, Class type) { + return (Y) GHOST_OBJ(key); + } + + default String GHOST_STR(String key) { + return String.class.cast(GHOST_OBJ(key)); + } + + default Short GHOST_SHORT(String key) { + return Short.class.cast(GHOST_OBJ(key)); + } + + default Character GHOST_CHAR(String key) { + return Character.class.cast(GHOST_OBJ(key)); + } + + default Integer GHOST_INT(String key) { + return Integer.class.cast(GHOST_OBJ(key)); + } + + default Long GHOST_LONG(String key) { + return Long.class.cast(GHOST_OBJ(key)); + } + + default Boolean GHOST_BOOL(String key) { + return Boolean.class.cast(GHOST_OBJ(key)); + } + + default Float GHOST_FLOAT(String key) { + return Float.class.cast(GHOST_OBJ(key)); + } + + default Double GHOST_DOUBLE(String key) { + return Double.class.cast(GHOST_OBJ(key)); + } + + @SuppressWarnings("unchecked") + default Map GHOST_MAP_OBJ(String key) { + return Map.class.cast(GHOST_OBJ(key)); + } + + default Object GHOST_MAP_OBJ_VALUE(String key, String valueKey) { + return GHOST_MAP_OBJ(key).get(valueKey); + } + + @SuppressWarnings("unchecked") + default Map GHOST_MAP_STR(String key) { + return Map.class.cast(GHOST_OBJ(key)); + } + + default String GHOST_MAP_STR_VALUE(String key, String valueKey) { + return GHOST_MAP_STR(key).get(valueKey); + } + + @SuppressWarnings("unchecked") + default Map GHOST_MAP_INT(String key) { + return Map.class.cast(GHOST_OBJ(key)); + } + + default Integer GHOST_MAP_INT_VALUE(String key, String valueKey) { + return GHOST_MAP_INT(key).get(valueKey); + } + + @SuppressWarnings("unchecked") + default List GHOST_LIST_OBJ(String key) { + return List.class.cast(GHOST_OBJ(key)); + } + + @SuppressWarnings("unchecked") + default List GHOST_LIST_STR(String key) { + return List.class.cast(GHOST_OBJ(key)); + } + + @SuppressWarnings("unchecked") + default List GHOST_LIST_INT(String key) { + return List.class.cast(GHOST_OBJ(key)); + } +} diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinOpenʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinOpenʸᴰ.java index 0934092c..52cdd51e 100644 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinOpenʸᴰ.java +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinOpenʸᴰ.java @@ -6,7 +6,7 @@ import java.util.Map; import java.util.function.Consumer; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -public interface BãßBȍőnCoffinOpenʸᴰ extends BãßBȍőnCoffinʸᴰ, DefaultInitMethodʸᴰ { +public interface BãßBȍőnCoffinOpenʸᴰ extends BãßBȍőnCoffinʸᴰ { void LOCK_COFFIN(); @@ -20,30 +20,56 @@ public interface BãßBȍőnCoffinOpenʸᴰ()); } - static & BãßBȍőnCoffinStoreʸᴰ> void lockCoffin(T store, Consumer logHandler) { + static void lockCoffin(DefaultEnumBaseʸᴰ store, Consumer logHandler) { logHandler.accept("Lock: "+store.BãßClassNaam()+" since: "+store.BãßAuthorCopyright()); for (Object o:store.BãßInstances()) { - BãßBȍőnCoffinStoreʸᴰ coffin = BãßBȍőnCoffinStoreʸᴰ.class.cast(o); + BãßBȍőnCoffinStoreʸᴰ coffin = BãßBȍőnCoffinStoreʸᴰ.class.cast(o); BãßBȍőnCoffinOpenʸᴰ coffinOpen = BãßBȍőnCoffinOpenʸᴰ.class.cast(coffin.GET_BBC()); coffinOpen.LOCK_COFFIN(); } } + static class BãßBȍőnFamilyGrave implements BãßBȍőnCoffinGhostʸᴰ { + final Map ghosts = new HashMap<>(); + volatile boolean deathLock = false; + + public void LOCK_GHOST() { + deathLock = true; + } + + @Override + public Object PUT_GHOST(String key, Object value) { + if (deathLock) { + throw new IllegalStateException("Can't restore body of family ghost."); + } + return ghosts.put(key, value); + } + + @Override + public Object GHOST_OBJ(String key) { + return ghosts.get(key); + } + } + static BãßBȍőnCoffinOpenʸᴰ newInstance() { return new BãßBȍőnCoffinOpenʸᴰ() { final Map initMap = new HashMap<>(); + final Map,BãßBȍőnFamilyGrave> familyGrave = new HashMap<>(); volatile boolean deathLock = false; @Override public void LOCK_COFFIN() { deathLock = true; + for (BãßBȍőnFamilyGrave grave:familyGrave.values()) { + grave.LOCK_GHOST(); + } } @Override public Object GET_OBJ(Y key) { return initMap.get(key); } - + @Override public Object PUT_OBJ(Y key, Object value) { if (deathLock) { @@ -51,6 +77,16 @@ public interface BãßBȍőnCoffinOpenʸᴰ familyName) { + BãßBȍőnFamilyGrave familyGhosts = familyGrave.get(familyName); + if (familyGhosts == null) { + familyGhosts = new BãßBȍőnFamilyGrave(); + familyGrave.put(familyName, familyGhosts); + } + return familyGhosts; + } }; } } diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinStoreKeyʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinStoreKeyʸᴰ.java index b2ad2059..9cdb3b41 100644 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinStoreKeyʸᴰ.java +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinStoreKeyʸᴰ.java @@ -4,4 +4,12 @@ package love.distributedrebirth.bassboonyd; public interface BãßBȍőnCoffinStoreKeyʸᴰ { String name(); + + static class None implements BãßBȍőnCoffinStoreKeyʸᴰ { + + @Override + public String name() { + return BãßBȍőnCoffinStoreKeyʸᴰ.class.getSimpleName(); + } + } } diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinStoreʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinStoreʸᴰ.java index 0b466202..66c8e8d8 100644 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinStoreʸᴰ.java +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinStoreʸᴰ.java @@ -1,7 +1,9 @@ package love.distributedrebirth.bassboonyd; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -public interface BãßBȍőnCoffinStoreʸᴰ { +public interface BãßBȍőnCoffinStoreʸᴰ { - BãßBȍőnCoffinʸᴰ GET_BBC(); + BãßBȍőnCoffinʸᴰ GET_BBC(); + + T BȍőnCoffinHeadStoneʸᴰ(); } diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinʸᴰ.java index 10cdfe9f..8df81c96 100644 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinʸᴰ.java +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnCoffinʸᴰ.java @@ -6,8 +6,10 @@ import java.util.Map; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") public interface BãßBȍőnCoffinʸᴰ { + BãßBȍőnCoffinGhostʸᴰ UNHOLY(Class familyName); + Object GET_OBJ(T key); - + @SuppressWarnings("unchecked") default Y GET_OBJ(T key, Class type) { return (Y) GET_OBJ(key); @@ -50,16 +52,28 @@ public interface BãßBȍőnCoffinʸᴰ GET_MAP_STR(T key) { return Map.class.cast(GET_OBJ(key)); } + default String GET_MAP_STR_VALUE(T key, String valueKey) { + return GET_MAP_STR(key).get(valueKey); + } + @SuppressWarnings("unchecked") default Map GET_MAP_INT(T key) { return Map.class.cast(GET_OBJ(key)); } + default Integer GET_MAP_INT_VALUE(T key, String valueKey) { + return GET_MAP_INT(key).get(valueKey); + } + @SuppressWarnings("unchecked") default List GET_LIST_OBJ(T key) { return List.class.cast(GET_OBJ(key)); diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnInitMarkerʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnꝐŕḯṿª₮ḕ.java similarity index 74% rename from gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnInitMarkerʸᴰ.java rename to gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnꝐŕḯṿª₮ḕ.java index 22a9428a..a376dd69 100644 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnInitMarkerʸᴰ.java +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnꝐŕḯṿª₮ḕ.java @@ -1,5 +1,5 @@ package love.distributedrebirth.bassboonyd; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -public interface BãßBȍőnInitMarkerʸᴰ { +public interface BãßBȍőnꝐŕḯṿª₮ḕ { } diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.java new file mode 100644 index 00000000..130264d7 --- /dev/null +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.java @@ -0,0 +1,10 @@ +package love.distributedrebirth.bassboonyd; + +@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") +public enum BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ { + + NONE, + BBC, + BOON, + BOON_AND_BBC +} diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ.java new file mode 100644 index 00000000..5c1229be --- /dev/null +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ.java @@ -0,0 +1,13 @@ +package love.distributedrebirth.bassboonyd; + +@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") +public enum BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ { + + BOON_PRE_BOOT, + BOON_PRE_SERVICE, + SERVICE_PRE, + SERVICE, + SERVICE_POST, + BOON_POST_SERVICE, + BOON_POST_DONE, +} diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnInitMethodʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ.java similarity index 56% rename from gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnInitMethodʸᴰ.java rename to gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ.java index 56afac9b..6ebc123b 100644 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnInitMethodʸᴰ.java +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ.java @@ -8,6 +8,9 @@ import java.lang.annotation.Target; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD}) -public @interface BãßBȍőnInitMethodʸᴰ { - +public @interface BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ { + + BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ phase() default BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ.SERVICE; + + BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ args() default BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.NONE; } diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultAuthorInfoʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultAuthorInfoʸᴰ.java deleted file mode 100644 index a1f15d17..00000000 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultAuthorInfoʸᴰ.java +++ /dev/null @@ -1,14 +0,0 @@ -package love.distributedrebirth.bassboonyd; - -@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnAuthorInfoʸᴰ.class}) -public interface DefaultAuthorInfoʸᴰ { - - default String BãßAuthorNaam() { - return getClass().getAnnotation(BãßBȍőnAuthorInfoʸᴰ.class).name(); - } - - default String BãßAuthorCopyright() { - return getClass().getAnnotation(BãßBȍőnAuthorInfoʸᴰ.class).copyright(); - } -} diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultBãßBȍőn.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultBãßBȍőn.java new file mode 100644 index 00000000..28a6c1d3 --- /dev/null +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultBãßBȍőn.java @@ -0,0 +1,9 @@ +package love.distributedrebirth.bassboonyd; + +public interface DefaultBãßBȍőn extends + BãßBȍőn, + InjectInitMethodʸᴰ, + InjectAuthorInfoʸᴰ, + InjectClassInfoʸᴰ, + InjectPackageInfoʸᴰ { +} diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultClassInfoʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultClassInfoʸᴰ.java deleted file mode 100644 index 05f46610..00000000 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultClassInfoʸᴰ.java +++ /dev/null @@ -1,14 +0,0 @@ -package love.distributedrebirth.bassboonyd; - -@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnClassInfoʸᴰ.class}) -public interface DefaultClassInfoʸᴰ { - - default String BãßClassNaam() { - return getClass().getAnnotation(BãßBȍőnClassInfoʸᴰ.class).name(); - } - - default String BãßClassPurpose() { - return getClass().getAnnotation(BãßBȍőnClassInfoʸᴰ.class).purpose(); - } -} diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultEnumBaseʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultEnumBaseʸᴰ.java index 219ea538..b831fa09 100644 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultEnumBaseʸᴰ.java +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultEnumBaseʸᴰ.java @@ -1,15 +1,15 @@ package love.distributedrebirth.bassboonyd; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -public interface DefaultEnumBaseʸᴰ extends DefaultAuthorInfoʸᴰ,DefaultClassInfoʸᴰ,DefaultPackageInfoʸᴰ { +public interface DefaultEnumBaseʸᴰ extends DefaultBãßBȍőn { + + // Bȍőn prefix is for set instance enum methods (called DefaultEnumSetʸᴰ) + // Bãß prefix is for single instance enum methods (called DefaultEnumInstanceʸᴰ) int ordinal(); String name(); - // Bȍőn prefix is for set instance enum methods (called DefaultEnumSetʸᴰ) - // Bãß prefix is for single instance enum methods (called DefaultEnumInstanceʸᴰ) - default String BȍőnNaam() { return name(); } @@ -23,10 +23,4 @@ public interface DefaultEnumBaseʸᴰ extends DefaultAuthorInfoʸᴰ,DefaultC throw new RuntimeException(e); } } - - /* - default String BȍőnNaamI18N() { - return BãßClassNaam() + BãßBȍőnConstantsʸᴰ.STR_DOT + BȍőnNaam(); - } - */ } diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultEnumInstanceʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultEnumInstanceʸᴰ.java index 518f8417..3590a0d3 100644 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultEnumInstanceʸᴰ.java +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultEnumInstanceʸᴰ.java @@ -1,7 +1,7 @@ package love.distributedrebirth.bassboonyd; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -public interface DefaultEnumInstanceʸᴰ extends DefaultEnumBaseʸᴰ { +public interface DefaultEnumInstanceʸᴰ extends DefaultEnumBaseʸᴰ { default T BãßInstance() { return BãßInstances()[BãßBȍőnConstantsʸᴰ.INT_ZERO]; diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultEnumSetʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultEnumSetʸᴰ.java index 28f5ef1b..cf1c2364 100644 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultEnumSetʸᴰ.java +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultEnumSetʸᴰ.java @@ -8,50 +8,59 @@ import java.util.function.Function; import java.util.stream.Collectors; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -public interface DefaultEnumSetʸᴰ extends DefaultEnumBaseʸᴰ { +public interface DefaultEnumSetʸᴰ extends DefaultEnumBaseʸᴰ { + + public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { + private static final String GHOST_KEY_RANG_TEL_EEN = "rangTelEen"; + + @BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ(args = BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BOON_AND_BBC) + private static void init(DefaultEnumSetʸᴰ boon, BãßBȍőnCoffinOpenʸᴰ BBC) { + BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_RANG_TEL_EEN, boon.BȍőnRangTelNul() + BãßBȍőnConstantsʸᴰ.INT_ONE); + } + } default int BȍőnRangTelNul() { return ordinal(); } default int BȍőnRangTelEen() { - return ordinal() + 1; + return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_INT(Ꝑŕḯṿª₮ḕ.GHOST_KEY_RANG_TEL_EEN); } default List BãßInstancesList() { return Arrays.asList(BãßInstances()); } - default Map BãßInstancesToMap(Function keyMapper) { + default Map BãßInstancesToMap(Function keyMapper) { return BãßInstancesList().stream().collect(Collectors.toMap(keyMapper, v -> v)); } default T BȍőnVolgende() { T[] values = BãßInstances(); - int resultIndex = 0; - for (int i=0;i interfaceClass:walkInterfaces(boon.getClass(), new LinkedHashSet<>())) { - for (Class declaredClass:((Class) interfaceClass).getDeclaredClasses()) { - initStaticMarker(declaredClass, bbc); - } - } - } - - public void scanClass(Object boon, Object bbc) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { - for (Class declaredClass:boon.getClass().getDeclaredClasses()) { - initStaticMarker(declaredClass, bbc); - } - } - - private void initStaticMarker(Class declaredClass, Object bbc) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { - if (!BãßBȍőnInitMarkerʸᴰ.class.isAssignableFrom(declaredClass)) { - return; - } - for (Method m:declaredClass.getDeclaredMethods()) { - if (m.isAnnotationPresent(BãßBȍőnInitMethodʸᴰ.class)) { - m.setAccessible(true); - m.invoke(null, bbc); - } - } - } - - private Set> walkInterfaces(Class clazz, Set> result) { - while (clazz != null) { - for (Class next : clazz.getInterfaces()) { - if (result.add(next)) { - return walkInterfaces(next, result); - } - } - clazz = clazz.getSuperclass(); - } - return result; - } - } - - InitScanner init = new InitScanner(); - try { - init.scanInterfaces(boon, this); - init.scanClass(boon, this); - } catch (Exception e) { - throw new RuntimeException(e); - } - } -} diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultPackageInfoʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultPackageInfoʸᴰ.java deleted file mode 100644 index da6e28cd..00000000 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/DefaultPackageInfoʸᴰ.java +++ /dev/null @@ -1,10 +0,0 @@ -package love.distributedrebirth.bassboonyd; - -@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnPackageInfoʸᴰ.class}) -public interface DefaultPackageInfoʸᴰ { - - default String BãßPackageNaam() { - return getClass().getAnnotation(BãßBȍőnPackageInfoʸᴰ.class).name(); - } -} diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/InjectAuthorInfoʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/InjectAuthorInfoʸᴰ.java new file mode 100644 index 00000000..996e9529 --- /dev/null +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/InjectAuthorInfoʸᴰ.java @@ -0,0 +1,28 @@ +package love.distributedrebirth.bassboonyd; + +@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") +@BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnAuthorInfoʸᴰ.class}) +public interface InjectAuthorInfoʸᴰ extends BãßBȍőn { + + public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { + private static final String GHOST_KEY_AUTHOR_NAME = "authorName"; + private static final String GHOST_KEY_AUTHOR_COPYRIGHT = "authorCopyright"; + private static final String DEFAULT_AUTHOR_NAME = "奴隸來自 仙上主天"; + private static final String DEFAULT_AUTHOR_COPYRIGHT = "©Δ∞ 仙上主天"; + + @BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ(phase = BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ.BOON_PRE_BOOT, args = BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BOON_AND_BBC) + private static void init(BãßBȍőn boon, BãßBȍőnCoffinOpenʸᴰ BBC) { + BãßBȍőnAuthorInfoʸᴰ anno = boon.getClass().getAnnotation(BãßBȍőnAuthorInfoʸᴰ.class); + BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_AUTHOR_NAME, anno!=null?anno.name():DEFAULT_AUTHOR_NAME); + BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_AUTHOR_COPYRIGHT, anno!=null?anno.copyright():DEFAULT_AUTHOR_COPYRIGHT); + } + } + + default String BãßAuthorNaam() { + return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_AUTHOR_NAME); + } + + default String BãßAuthorCopyright() { + return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_AUTHOR_COPYRIGHT); + } +} diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/InjectClassInfoʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/InjectClassInfoʸᴰ.java new file mode 100644 index 00000000..f24d45a4 --- /dev/null +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/InjectClassInfoʸᴰ.java @@ -0,0 +1,27 @@ +package love.distributedrebirth.bassboonyd; + +@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") +@BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnClassInfoʸᴰ.class}) +public interface InjectClassInfoʸᴰ extends BãßBȍőn { + + public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { + private static final String GHOST_KEY_BEAN_NAME = "beanName"; + private static final String GHOST_KEY_BEAN_PURPOSE = "beanPurpose"; + private static final String DEFAULT_BEAN_PURPOSE = "Undefined"; + + @BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ(phase = BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ.BOON_PRE_BOOT, args = BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BOON_AND_BBC) + private static void init(BãßBȍőn boon, BãßBȍőnCoffinOpenʸᴰ BBC) { + BãßBȍőnClassInfoʸᴰ anno = boon.getClass().getAnnotation(BãßBȍőnClassInfoʸᴰ.class); + BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_BEAN_NAME, anno!=null?anno.name():boon.getClass().getSimpleName()); + BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_BEAN_PURPOSE, anno!=null?anno.purpose():DEFAULT_BEAN_PURPOSE); + } + } + + default String BãßClassNaam() { + return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_BEAN_NAME); + } + + default String BãßClassPurpose() { + return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_BEAN_PURPOSE); + } +} diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/InjectInitMethodʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/InjectInitMethodʸᴰ.java new file mode 100644 index 00000000..f312ffbe --- /dev/null +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/InjectInitMethodʸᴰ.java @@ -0,0 +1,85 @@ +package love.distributedrebirth.bassboonyd; + +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.util.LinkedHashSet; +import java.util.Set; +import java.util.function.Consumer; + +@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") +public interface InjectInitMethodʸᴰ extends BãßBȍőn { + + public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { + + private static void scanInterfaces(BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ phase, Object boon, BãßBȍőnCoffinOpenʸᴰ bbc) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { + for (Class interfaceClass:walkInterfaces(boon.getClass(), new LinkedHashSet<>())) { + for (Class declaredClass:((Class) interfaceClass).getDeclaredClasses()) { + initPrivateMarker(phase, declaredClass, bbc, boon); + } + } + } + + private static void scanClass(BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ phase, Object boon, BãßBȍőnCoffinOpenʸᴰ bbc) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { + for (Class declaredClass:boon.getClass().getDeclaredClasses()) { + initPrivateMarker(phase, declaredClass, bbc, boon); + } + } + + private static void initPrivateMarker(BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ phase, Class declaredClass, BãßBȍőnCoffinOpenʸᴰ bbc, Object boon) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException { + if (!BãßBȍőnꝐŕḯṿª₮ḕ.class.isAssignableFrom(declaredClass)) { + return; + } + for (Method m:declaredClass.getDeclaredMethods()) { + if (!m.isAnnotationPresent(BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ.class)) { + continue; + } + BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ anno = m.getAnnotation(BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ.class); + if (phase != anno.phase()) { + continue; // TODO: redo to fast code path + } + //System.out.println("annoInvoke: "+anno.args()+" req="+phase+" of "+boon.getClass().getSimpleName()+"."+boon+" from: "+declaredClass.getName()); + m.setAccessible(true); + if (anno.args() == BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BBC) { + m.invoke(null, bbc); + } else if (anno.args() == BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BOON) { + m.invoke(null, boon); + } else if (anno.args() == BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BOON_AND_BBC) { + m.invoke(null, boon, bbc); + } else { + m.invoke(null); + } + } + } + + private static Set> walkInterfaces(Class clazz, Set> result) { + while (clazz != null) { + for (Class next : clazz.getInterfaces()) { + if (result.add(next)) { + walkInterfaces(next, result); + } + } + clazz = clazz.getSuperclass(); + } + return result; + } + } + + default void BOON_INIT() { + BOON_INIT(null); + } + + default void BOON_INIT(Consumer> initBody) { + BãßBȍőnCoffinOpenʸᴰ bbc = (BãßBȍőnCoffinOpenʸᴰ) GET_BBC(); + try { + for (BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ phase:BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ.values()) { + Ꝑŕḯṿª₮ḕ.scanInterfaces(phase, this, bbc); + Ꝑŕḯṿª₮ḕ.scanClass(phase, this, bbc); + } + if (initBody != null) { + initBody.accept(bbc); + } + } catch (Exception e) { + throw new RuntimeException(e); + } + } +} diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/InjectPackageInfoʸᴰ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/InjectPackageInfoʸᴰ.java new file mode 100644 index 00000000..f14cd716 --- /dev/null +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/InjectPackageInfoʸᴰ.java @@ -0,0 +1,20 @@ +package love.distributedrebirth.bassboonyd; + +@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") +@BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnPackageInfoʸᴰ.class}) +public interface InjectPackageInfoʸᴰ extends BãßBȍőn { + + public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { + private static final String GHOST_KEY_PACKAGE_NAME = "packageName"; + + @BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ(phase = BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ.BOON_PRE_BOOT, args = BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BOON_AND_BBC) + private static void init(BãßBȍőn boon, BãßBȍőnCoffinOpenʸᴰ BBC) { + BãßBȍőnPackageInfoʸᴰ anno = boon.getClass().getAnnotation(BãßBȍőnPackageInfoʸᴰ.class); + BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_PACKAGE_NAME, anno!=null?anno.name():boon.getClass().getPackage().getName()); + } + } + + default String BãßPackageNaam() { + return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_PACKAGE_NAME); + } +} diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumBaseᴶᴹˣ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumBaseᴶᴹˣ.java index 1aa3b9ae..668b994e 100644 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumBaseᴶᴹˣ.java +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumBaseᴶᴹˣ.java @@ -1,46 +1,61 @@ package love.distributedrebirth.bassboonyd.jmx; +import java.util.HashMap; +import java.util.Map; + import love.distributedrebirth.bassboonyd.BãßBȍőnAnnotationInfoʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreKeyʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnConstantsʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕ; import love.distributedrebirth.bassboonyd.DefaultEnumBaseʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnClassInfoʸᴰ.class, BãßBȍőnAuthorInfoʸᴰ.class}) -public interface DefaultEnumBaseᴶᴹˣ extends DefaultEnumBaseʸᴰ,BãßBȍőnCoffinStoreʸᴰ { +public interface DefaultEnumBaseᴶᴹˣ extends DefaultEnumBaseʸᴰ { - void BȍőnJmxInit(K key); - - default GuageCounterᴶᴹˣ BȍőnJmxInitGuageCounter(K key, String name) { - return BȍőnJmxInitGuageCounter(key, name, BãßBȍőnConstantsʸᴰ.STR_EMPTY); + public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { + private static final String GHOST_KEY_JMX = "JMX"; } - default GuageCounterᴶᴹˣ BȍőnJmxInitGuageCounter(K key, String name, String description) { + public static Map GHOST_MAP(BãßBȍőnCoffinOpenʸᴰ BBC) { + Map result = BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_MAP_OBJ(Ꝑŕḯṿª₮ḕ.GHOST_KEY_JMX); + if (result == null) { + result = new HashMap<>(); + BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(Ꝑŕḯṿª₮ḕ.GHOST_KEY_JMX, result); + } + return result; + } + + default GuageCounterᴶᴹˣ BȍőnJmxInitGuageCounter(String name) { + return BȍőnJmxInitGuageCounter(name, BãßBȍőnConstantsʸᴰ.STR_EMPTY); + } + + default GuageCounterᴶᴹˣ BȍőnJmxInitGuageCounter(String name, String description) { GuageCounterᴶᴹˣ result = new GuageCounterᴶᴹˣ(name, description); - GET_BBC().GET_MAP_OBJ(key).put(name, result); + GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_MAP_OBJ(Ꝑŕḯṿª₮ḕ.GHOST_KEY_JMX).put(name, result); return result; } - default StringAttributeᴶᴹˣ BȍőnJmxInitStringAttribute(K key, String name) { - return BȍőnJmxInitStringAttribute(key, name, BãßBȍőnConstantsʸᴰ.STR_EMPTY); + default StringAttributeᴶᴹˣ BȍőnJmxInitStringAttribute(String name) { + return BȍőnJmxInitStringAttribute(name, BãßBȍőnConstantsʸᴰ.STR_EMPTY); } - default StringAttributeᴶᴹˣ BȍőnJmxInitStringAttribute(K key, String name, String description) { + default StringAttributeᴶᴹˣ BȍőnJmxInitStringAttribute(String name, String description) { StringAttributeᴶᴹˣ result = new StringAttributeᴶᴹˣ(name, description); - GET_BBC().GET_MAP_OBJ(key).put(name, result); + GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_MAP_OBJ(Ꝑŕḯṿª₮ḕ.GHOST_KEY_JMX).put(name, result); return result; } - default BooleanAttributeᴶᴹˣ BȍőnJmxInitBooleanAttribute(K key, String name) { - return BȍőnJmxInitBooleanAttribute(key, name, BãßBȍőnConstantsʸᴰ.STR_EMPTY); + default BooleanAttributeᴶᴹˣ BȍőnJmxInitBooleanAttribute(String name) { + return BȍőnJmxInitBooleanAttribute(name, BãßBȍőnConstantsʸᴰ.STR_EMPTY); } - default BooleanAttributeᴶᴹˣ BȍőnJmxInitBooleanAttribute(K key, String name, String description) { + default BooleanAttributeᴶᴹˣ BȍőnJmxInitBooleanAttribute(String name, String description) { BooleanAttributeᴶᴹˣ result = new BooleanAttributeᴶᴹˣ(name, description); - GET_BBC().GET_MAP_OBJ(key).put(name, result); + GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_MAP_OBJ(Ꝑŕḯṿª₮ḕ.GHOST_KEY_JMX).put(name, result); return result; } } diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumInstanceᴶᴹˣ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumInstanceᴶᴹˣ.java index 05f3ed5b..9153e95a 100644 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumInstanceᴶᴹˣ.java +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumInstanceᴶᴹˣ.java @@ -11,29 +11,34 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreKeyʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnConstantsʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ; import love.distributedrebirth.bassboonyd.DefaultEnumInstanceʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnClassInfoʸᴰ.class, BãßBȍőnAuthorInfoʸᴰ.class}) -public interface DefaultEnumInstanceᴶᴹˣ extends DefaultEnumBaseᴶᴹˣ,DefaultEnumInstanceʸᴰ { +public interface DefaultEnumInstanceᴶᴹˣ extends DefaultEnumBaseᴶᴹˣ,DefaultEnumInstanceʸᴰ { - @SuppressWarnings("unchecked") - default void BȍőnJmxInit(K key) { - BãßBȍőnCoffinOpenʸᴰ coffin = BãßBȍőnCoffinOpenʸᴰ.class.cast(GET_BBC()); - coffin.PUT_MAP(key); - try { - StringBuilder name = new StringBuilder(); - name.append(BãßPackageNaam()); - name.append(BãßBȍőnConstantsʸᴰ.STR_COLON); - name.append(BãßBȍőnConstantsʸᴰ.STR_TYPE); - name.append(BãßBȍőnConstantsʸᴰ.STR_IS); - name.append(BãßClassNaam()); - - MBeanServer server = ManagementFactory.getPlatformMBeanServer(); - ObjectName objectName1 = new ObjectName(name.toString()); - server.registerMBean(new MBeanDynamicᴶᴹˣ(BãßClassPurpose(), GET_BBC().GET_MAP_OBJ(key)), objectName1); - } catch (Exception e) { - throw new RuntimeException(e); + public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { + + @BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ(phase = BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ.BOON_PRE_SERVICE, args = BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BOON_AND_BBC) + private static void init(DefaultEnumBaseᴶᴹˣ boon, BãßBȍőnCoffinOpenʸᴰ BBC) { + try { + StringBuilder name = new StringBuilder(); + name.append(boon.BãßPackageNaam()); + name.append(BãßBȍőnConstantsʸᴰ.STR_COLON); + name.append(BãßBȍőnConstantsʸᴰ.STR_TYPE); + name.append(BãßBȍőnConstantsʸᴰ.STR_IS); + name.append(boon.BãßClassNaam()); + + MBeanServer server = ManagementFactory.getPlatformMBeanServer(); + ObjectName objectName1 = new ObjectName(name.toString()); + server.registerMBean(new MBeanDynamicᴶᴹˣ(boon.BãßClassPurpose(), DefaultEnumBaseᴶᴹˣ.GHOST_MAP(BBC)), objectName1); + } catch (Exception e) { + throw new RuntimeException(e); + } } } } diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumSetᴶᴹˣ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumSetᴶᴹˣ.java index dc982c55..24fbd09c 100644 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumSetᴶᴹˣ.java +++ b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/DefaultEnumSetᴶᴹˣ.java @@ -11,33 +11,38 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreKeyʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnConstantsʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ; import love.distributedrebirth.bassboonyd.DefaultEnumSetʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnClassInfoʸᴰ.class, BãßBȍőnAuthorInfoʸᴰ.class}) -public interface DefaultEnumSetᴶᴹˣ extends DefaultEnumBaseᴶᴹˣ,DefaultEnumSetʸᴰ { +public interface DefaultEnumSetᴶᴹˣ extends DefaultEnumBaseᴶᴹˣ,DefaultEnumSetʸᴰ { - @SuppressWarnings("unchecked") - default void BȍőnJmxInit(K key) { - BãßBȍőnCoffinOpenʸᴰ coffin = BãßBȍőnCoffinOpenʸᴰ.class.cast(GET_BBC()); - coffin.PUT_MAP(key); - try { - StringBuilder name = new StringBuilder(); - name.append(BãßPackageNaam()); - name.append(BãßBȍőnConstantsʸᴰ.STR_COLON); - name.append(BãßBȍőnConstantsʸᴰ.STR_TYPE); - name.append(BãßBȍőnConstantsʸᴰ.STR_IS); - name.append(BãßClassNaam()); - name.append(BãßBȍőnConstantsʸᴰ.STR_COMMA); - name.append(BãßBȍőnConstantsʸᴰ.STR_NAME); - name.append(BãßBȍőnConstantsʸᴰ.STR_IS); - name.append(BȍőnNaam()); - - MBeanServer server = ManagementFactory.getPlatformMBeanServer(); - ObjectName objectName1 = new ObjectName(name.toString()); - server.registerMBean(new MBeanDynamicᴶᴹˣ(BãßClassPurpose(), GET_BBC().GET_MAP_OBJ(key)), objectName1); - } catch (Exception e) { - throw new RuntimeException(e); + public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { + + @BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ(phase = BãßBȍőnꝐŕḯṿª₮ḕInitPhaseʸᴰ.BOON_PRE_SERVICE, args = BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BOON_AND_BBC) + private static void init(DefaultEnumBaseᴶᴹˣ boon, BãßBȍőnCoffinOpenʸᴰ BBC) { + try { + StringBuilder name = new StringBuilder(); + name.append(boon.BãßPackageNaam()); + name.append(BãßBȍőnConstantsʸᴰ.STR_COLON); + name.append(BãßBȍőnConstantsʸᴰ.STR_TYPE); + name.append(BãßBȍőnConstantsʸᴰ.STR_IS); + name.append(boon.BãßClassNaam()); + name.append(BãßBȍőnConstantsʸᴰ.STR_COMMA); + name.append(BãßBȍőnConstantsʸᴰ.STR_NAME); + name.append(BãßBȍőnConstantsʸᴰ.STR_IS); + name.append(boon.BȍőnNaam()); + + MBeanServer server = ManagementFactory.getPlatformMBeanServer(); + ObjectName objectName1 = new ObjectName(name.toString()); + server.registerMBean(new MBeanDynamicᴶᴹˣ(boon.BãßClassPurpose(), DefaultEnumBaseᴶᴹˣ.GHOST_MAP(BBC)), objectName1); + } catch (Exception e) { + throw new RuntimeException(e); + } } } } diff --git a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/MBeanStoreKeyᴶᴹˣ.java b/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/MBeanStoreKeyᴶᴹˣ.java deleted file mode 100644 index bc076fbb..00000000 --- a/gdxapp4d-lib-bassboonyd/src/main/java/love/distributedrebirth/bassboonyd/jmx/MBeanStoreKeyᴶᴹˣ.java +++ /dev/null @@ -1,13 +0,0 @@ -package love.distributedrebirth.bassboonyd.jmx; - -import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreKeyʸᴰ; - -/** - * Only use when no other coffin keys are needed on instance or enum. - */ -@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -public enum MBeanStoreKeyᴶᴹˣ implements BãßBȍőnCoffinStoreKeyʸᴰ { - JMX, - ; -} diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/AbstractGroßGetậlŌṁ1ⁿᴰ.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/AbstractGroßGetậlŌṁ1ⁿᴰ.java index 15aa47ca..98ac53a8 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/AbstractGroßGetậlŌṁ1ⁿᴰ.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/AbstractGroßGetậlŌṁ1ⁿᴰ.java @@ -43,7 +43,7 @@ abstract public class AbstractGroßGetậlŌṁ1ⁿᴰ { - private final V144Tocta[] values = new V144Tocta[T12PartUncial.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()]; + private final V144Tocta[] values = new V144Tocta[T12PartUncial.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; public GroßGetậl6ˢᴰ() { for (int i=0;i { - private final V0x000CA8ˣᴸ[] values = new V0x000CA8ˣᴸ[T08PartOctal.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()]; + private final V0x000CA8ˣᴸ[] values = new V0x000CA8ˣᴸ[T08PartOctal.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; public KlompGetậl4ˢᴰ() { for (int i=0;i { +public enum Base2PartsFactory implements DefaultEnumInstanceᴶᴹˣ { INSTANCE; @@ -46,26 +44,23 @@ public enum Base2PartsFactory implements DefaultEnumInstanceᴶᴹˣ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } private Base2PartsFactory() { - BBC.BOON_INIT(this); - BȍőnJmxInit(MBeanStoreKeyᴶᴹˣ.JMX); - baseT02Reads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "baseT02Reads"); - baseT03Reads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "baseT03Reads"); - baseT04Reads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "baseT04Reads"); - baseT05Reads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "baseT05Reads"); - baseT06Reads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "baseT06Reads"); - baseT07Reads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "baseT07Reads"); - baseT08Reads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "baseT08Reads"); - baseT09Reads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "baseT09Reads"); - baseT10Reads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "baseT10Reads"); - baseT11Reads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "baseT11Reads"); - baseT12Reads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "baseT12Reads"); - baseT16Reads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "baseT16Reads"); - baseT20Reads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "baseT20Reads"); - baseT60Reads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "baseT60Reads"); + BOON_INIT(); + baseT02Reads = BȍőnJmxInitGuageCounter("baseT02Reads"); + baseT03Reads = BȍőnJmxInitGuageCounter("baseT03Reads"); + baseT04Reads = BȍőnJmxInitGuageCounter("baseT04Reads"); + baseT05Reads = BȍőnJmxInitGuageCounter("baseT05Reads"); + baseT06Reads = BȍőnJmxInitGuageCounter("baseT06Reads"); + baseT07Reads = BȍőnJmxInitGuageCounter("baseT07Reads"); + baseT08Reads = BȍőnJmxInitGuageCounter("baseT08Reads"); + baseT09Reads = BȍőnJmxInitGuageCounter("baseT09Reads"); + baseT10Reads = BȍőnJmxInitGuageCounter("baseT10Reads"); + baseT11Reads = BȍőnJmxInitGuageCounter("baseT11Reads"); + baseT12Reads = BȍőnJmxInitGuageCounter("baseT12Reads"); + baseT16Reads = BȍőnJmxInitGuageCounter("baseT16Reads"); + baseT20Reads = BȍőnJmxInitGuageCounter("baseT20Reads"); + baseT60Reads = BȍőnJmxInitGuageCounter("baseT60Reads"); } public int[] BãßBases() { diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/Base2Terminator.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/Base2Terminator.java index ff82b68c..c2973cd6 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/Base2Terminator.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/Base2Terminator.java @@ -9,12 +9,10 @@ import java.util.List; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreKeyʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnPackageInfoʸᴰ; import love.distributedrebirth.bassboonyd.jmx.DefaultEnumInstanceᴶᴹˣ; import love.distributedrebirth.bassboonyd.jmx.GuageCounterᴶᴹˣ; -import love.distributedrebirth.bassboonyd.jmx.MBeanStoreKeyᴶᴹˣ; import love.distributedrebirth.numberxd.base2t.part.T08PartOctal; import love.distributedrebirth.numberxd.base2t.type.V072Tong; import love.distributedrebirth.numberxd.base2t.type.V144Tocta; @@ -22,7 +20,7 @@ import love.distributedrebirth.numberxd.base2t.type.V144Tocta; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnClassInfoʸᴰ(name = "Base2Terminator", purpose = "Terminate from and to classical bytes.") @BãßBȍőnPackageInfoʸᴰ(name = "love.distributedrebirth.numberxd") -public enum Base2Terminator implements DefaultEnumInstanceᴶᴹˣ { +public enum Base2Terminator implements DefaultEnumInstanceᴶᴹˣ { INSTANCE; @@ -43,24 +41,21 @@ public enum Base2Terminator implements DefaultEnumInstanceᴶᴹˣ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } private Base2Terminator() { - BBC.BOON_INIT(this); - BȍőnJmxInit(MBeanStoreKeyᴶᴹˣ.JMX); - readV072TongInvokes = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "readV072TongInvokes"); - readV072TongTypeReads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "readV072TongTypeReads"); - readV144ToctaInvokes = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "readV144ToctaInvokes"); - readV072TongByteWrites = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "readV072TongByteWrites"); - readV144ToctaTypeReads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "readV144ToctaTypeReads"); - readV144ToctaByteWrites = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "readV144ToctaByteWrites"); - writeV072TongInvokes = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "writeV072TongInvokes"); - writeV072TongByteReads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "writeV072TongByteReads"); - writeV072TongTypeWrites = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "writeV072TongTypeWrites"); - writeV144ToctaInvokes = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "writeV144ToctaInvokes"); - writeV144ToctaBytesReads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "writeV144ToctaBytesReads"); - writeV144ToctaTypeWrites = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "writeV144ToctaTypeWrites"); + BOON_INIT(); + readV072TongInvokes = BȍőnJmxInitGuageCounter("readV072TongInvokes"); + readV072TongTypeReads = BȍőnJmxInitGuageCounter("readV072TongTypeReads"); + readV144ToctaInvokes = BȍőnJmxInitGuageCounter("readV144ToctaInvokes"); + readV072TongByteWrites = BȍőnJmxInitGuageCounter("readV072TongByteWrites"); + readV144ToctaTypeReads = BȍőnJmxInitGuageCounter("readV144ToctaTypeReads"); + readV144ToctaByteWrites = BȍőnJmxInitGuageCounter("readV144ToctaByteWrites"); + writeV072TongInvokes = BȍőnJmxInitGuageCounter("writeV072TongInvokes"); + writeV072TongByteReads = BȍőnJmxInitGuageCounter("writeV072TongByteReads"); + writeV072TongTypeWrites = BȍőnJmxInitGuageCounter("writeV072TongTypeWrites"); + writeV144ToctaInvokes = BȍőnJmxInitGuageCounter("writeV144ToctaInvokes"); + writeV144ToctaBytesReads = BȍőnJmxInitGuageCounter("writeV144ToctaBytesReads"); + writeV144ToctaTypeWrites = BȍőnJmxInitGuageCounter("writeV144ToctaTypeWrites"); } public int Bãß2ReadTong(InputStream input, List output) throws IOException { @@ -113,7 +108,7 @@ public enum Base2Terminator implements DefaultEnumInstanceᴶᴹˣ Bãß2ReadOctals(int...values) { List octals = new ArrayList<>(); for (int value:values) { - T08PartOctal.DEFAULT.BãßVoorElk(v -> octals.add(T08PartOctal.indexOf(v, value))); + T08PartOctal.STATIC.BãßVoorElk(v -> octals.add(T08PartOctal.indexOf(v, value))); } return octals; } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/Base2WarpCore.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/Base2WarpCore.java index 25f34389..c874ef9d 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/Base2WarpCore.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/Base2WarpCore.java @@ -7,10 +7,9 @@ import java.util.function.Consumer; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreKeyʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnPackageInfoʸᴰ; import love.distributedrebirth.bassboonyd.jmx.BooleanAttributeᴶᴹˣ; -import love.distributedrebirth.bassboonyd.jmx.MBeanStoreKeyᴶᴹˣ; import love.distributedrebirth.bassboonyd.jmx.DefaultEnumInstanceᴶᴹˣ; import love.distributedrebirth.bassboonyd.jmx.GuageCounterᴶᴹˣ; import love.distributedrebirth.bassboonyd.jmx.StringAttributeᴶᴹˣ; @@ -24,7 +23,7 @@ import love.distributedrebirth.warpme.core.WaterCipherHeartTone; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnClassInfoʸᴰ(name = "Base2WarpCore", purpose = "The warpcore writer and armor manager.") @BãßBȍőnPackageInfoʸᴰ(name = "love.distributedrebirth.numberxd") -public enum Base2WarpCore implements DefaultEnumInstanceᴶᴹˣ { +public enum Base2WarpCore implements DefaultEnumInstanceᴶᴹˣ { INSTANCE; @@ -34,20 +33,17 @@ public enum Base2WarpCore implements DefaultEnumInstanceᴶᴹˣ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } private Base2WarpCore() { - BBC.BOON_INIT(this); - BȍőnJmxInit(MBeanStoreKeyᴶᴹˣ.JMX); - warpCoreReads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "warpCoreReads", "The amount of warpcore reads."); - warpCoreWrites = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "warpCoreWrites", "The amount of warpcore writes."); - warpCoreValidates = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "warpCoreValidates", "The amount of warpcore validates."); - armedWarpWaterName = BȍőnJmxInitStringAttribute(MBeanStoreKeyᴶᴹˣ.JMX, "armedWarpWaterName", "The armed water cipher name."); + BOON_INIT(); + warpCoreReads = BȍőnJmxInitGuageCounter("warpCoreReads", "The amount of warpcore reads."); + warpCoreWrites = BȍőnJmxInitGuageCounter("warpCoreWrites", "The amount of warpcore writes."); + warpCoreValidates = BȍőnJmxInitGuageCounter("warpCoreValidates", "The amount of warpcore validates."); + armedWarpWaterName = BȍőnJmxInitStringAttribute("armedWarpWaterName", "The armed water cipher name."); armedWarpWaterName.setValueString("default"); - armedWarpWaterDesc = BȍőnJmxInitStringAttribute(MBeanStoreKeyᴶᴹˣ.JMX, "armedWarpWaterDesc", "The armed water cipher description."); + armedWarpWaterDesc = BȍőnJmxInitStringAttribute("armedWarpWaterDesc", "The armed water cipher description."); armedWarpWaterDesc.setValueString("Current active cipher."); - armedWarpCipherLock = BȍőnJmxInitBooleanAttribute(MBeanStoreKeyᴶᴹˣ.JMX, "armedWarpCipherLock", "Is the water cipher locked."); + armedWarpCipherLock = BȍőnJmxInitBooleanAttribute("armedWarpCipherLock", "Is the water cipher locked."); armedWarpCipherLock.setValueBoolean(false); } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/BaseAppenderAdapter.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/BaseAppenderAdapter.java new file mode 100644 index 00000000..e7e6f8ae --- /dev/null +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/BaseAppenderAdapter.java @@ -0,0 +1,23 @@ +package love.distributedrebirth.numberxd.base2t; + +import java.util.Collection; + +import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; + +/** + * Appender model for generic object. + */ +@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") +public class BaseAppenderAdapter implements BaseAppender { + + private final Collection collection; + + public BaseAppenderAdapter(Collection collection) { + this.collection = collection; + } + + @Override + public void add(T value) { + collection.add(value); + } +} diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/BaseAppenderOctal.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/BaseAppenderOctal.java index 772dea8b..b6b6cec0 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/BaseAppenderOctal.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/BaseAppenderOctal.java @@ -9,16 +9,9 @@ import love.distributedrebirth.numberxd.base2t.part.T08PartOctal; * Appender model for Octals. */ @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -public final class BaseAppenderOctal implements BaseAppender { - - private final Collection collection; +public final class BaseAppenderOctal extends BaseAppenderAdapter { public BaseAppenderOctal(Collection collection) { - this.collection = collection; - } - - @Override - public void add(T08PartOctal value) { - collection.add(value); + super(collection); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/BaseAppenderTyte.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/BaseAppenderTyte.java index eaecf60f..a9e91125 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/BaseAppenderTyte.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/BaseAppenderTyte.java @@ -9,16 +9,9 @@ import love.distributedrebirth.numberxd.base2t.type.V009Tyte; * Appender model for Tytes. */ @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -public final class BaseAppenderTyte implements BaseAppender { - - private final Collection collection; +public final class BaseAppenderTyte extends BaseAppenderAdapter { public BaseAppenderTyte(Collection collection) { - this.collection = collection; - } - - @Override - public void add(V009Tyte value) { - collection.add(value); + super(collection); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt1ʸᴰ.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt1ʸᴰ.java index 31b1e39f..fee80a55 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt1ʸᴰ.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt1ʸᴰ.java @@ -2,20 +2,37 @@ package love.distributedrebirth.numberxd.base2t.part; import love.distributedrebirth.bassboonyd.BãßBȍőnAnnotationInfoʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnConstantsʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnPartAlt1Infoʸᴰ.class}) public interface BãßBȍőnPartAlt1ʸᴰ> extends BãßBȍőnPartʸᴰ { + public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { + private static final String GHOST_KEY_ALT1_NAME = "alt1Name"; + private static final String GHOST_KEY_ALT1_WEBSITE = "alt1Website"; + + @BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ(args = BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BOON_AND_BBC) + private static void init(BãßBȍőnPartʸᴰ boon, BãßBȍőnCoffinOpenʸᴰ BBC) { + BãßBȍőnPartAlt1Infoʸᴰ anno = boon.getClass().getAnnotation(BãßBȍőnPartAlt1Infoʸᴰ.class); + BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_ALT1_NAME, anno!=null?anno.name():boon.getClass().getSimpleName()); + BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_ALT1_WEBSITE, anno!=null?anno.website():BãßBȍőnConstantsʸᴰ.STR_EMPTY); + } + } + default String BȍőnAlt1Value() { return GET_BBC().GET_STR(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE); } default String BãßAlt1Name() { - return getClass().getAnnotation(BãßBȍőnPartAlt1Infoʸᴰ.class).name(); + return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_ALT1_NAME); } default String BãßAlt1Website() { - return getClass().getAnnotation(BãßBȍőnPartAlt1Infoʸᴰ.class).website(); + return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_ALT1_WEBSITE); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt2ʸᴰ.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt2ʸᴰ.java index 2702528d..f2adf287 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt2ʸᴰ.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt2ʸᴰ.java @@ -2,20 +2,37 @@ package love.distributedrebirth.numberxd.base2t.part; import love.distributedrebirth.bassboonyd.BãßBȍőnAnnotationInfoʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnConstantsʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnPartAlt2Infoʸᴰ.class}) public interface BãßBȍőnPartAlt2ʸᴰ> extends BãßBȍőnPartAlt1ʸᴰ { - + + public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { + private static final String GHOST_KEY_ALT2_NAME = "alt2Name"; + private static final String GHOST_KEY_ALT2_WEBSITE = "alt2Website"; + + @BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ(args = BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BOON_AND_BBC) + private static void init(BãßBȍőnPartʸᴰ boon, BãßBȍőnCoffinOpenʸᴰ BBC) { + BãßBȍőnPartAlt1Infoʸᴰ anno = boon.getClass().getAnnotation(BãßBȍőnPartAlt1Infoʸᴰ.class); + BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_ALT2_NAME, anno!=null?anno.name():boon.getClass().getSimpleName()); + BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_ALT2_WEBSITE, anno!=null?anno.website():BãßBȍőnConstantsʸᴰ.STR_EMPTY); + } + } + default String BȍőnAlt2Value() { return GET_BBC().GET_STR(BãßBȍőnPartKeyʸᴰ.ALT_2_VALUE); } default String BãßAlt2Name() { - return getClass().getAnnotation(BãßBȍőnPartAlt2Infoʸᴰ.class).name(); + return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_ALT2_NAME); } default String BãßAlt2Website() { - return getClass().getAnnotation(BãßBȍőnPartAlt2Infoʸᴰ.class).website(); + return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_ALT2_WEBSITE); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt3ʸᴰ.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt3ʸᴰ.java index a4a3dde8..836afd8b 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt3ʸᴰ.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt3ʸᴰ.java @@ -2,20 +2,37 @@ package love.distributedrebirth.numberxd.base2t.part; import love.distributedrebirth.bassboonyd.BãßBȍőnAnnotationInfoʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnConstantsʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnPartAlt3Infoʸᴰ.class}) public interface BãßBȍőnPartAlt3ʸᴰ> extends BãßBȍőnPartAlt2ʸᴰ { - + + public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { + private static final String GHOST_KEY_ALT3_NAME = "alt3Name"; + private static final String GHOST_KEY_ALT3_WEBSITE = "alt3Website"; + + @BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ(args = BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BOON_AND_BBC) + private static void init(BãßBȍőnPartʸᴰ boon, BãßBȍőnCoffinOpenʸᴰ BBC) { + BãßBȍőnPartAlt1Infoʸᴰ anno = boon.getClass().getAnnotation(BãßBȍőnPartAlt1Infoʸᴰ.class); + BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_ALT3_NAME, anno!=null?anno.name():boon.getClass().getSimpleName()); + BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_ALT3_WEBSITE, anno!=null?anno.website():BãßBȍőnConstantsʸᴰ.STR_EMPTY); + } + } + default String BȍőnAlt3Value() { return GET_BBC().GET_STR(BãßBȍőnPartKeyʸᴰ.ALT_3_VALUE); } default String BãßAlt3Name() { - return getClass().getAnnotation(BãßBȍőnPartAlt3Infoʸᴰ.class).name(); + return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_ALT3_NAME); } default String BãßAlt3Website() { - return getClass().getAnnotation(BãßBȍőnPartAlt3Infoʸᴰ.class).website(); + return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_ALT3_WEBSITE); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt4ʸᴰ.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt4ʸᴰ.java index e4e12835..b8453fcb 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt4ʸᴰ.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartAlt4ʸᴰ.java @@ -2,20 +2,37 @@ package love.distributedrebirth.numberxd.base2t.part; import love.distributedrebirth.bassboonyd.BãßBȍőnAnnotationInfoʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnConstantsʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnAnnotationInfoʸᴰ(required = {BãßBȍőnPartAlt4Infoʸᴰ.class}) public interface BãßBȍőnPartAlt4ʸᴰ> extends BãßBȍőnPartAlt3ʸᴰ { - + + public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { + private static final String GHOST_KEY_ALT4_NAME = "alt4Name"; + private static final String GHOST_KEY_ALT4_WEBSITE = "alt4Website"; + + @BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ(args = BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BOON_AND_BBC) + private static void init(BãßBȍőnPartʸᴰ boon, BãßBȍőnCoffinOpenʸᴰ BBC) { + BãßBȍőnPartAlt1Infoʸᴰ anno = boon.getClass().getAnnotation(BãßBȍőnPartAlt1Infoʸᴰ.class); + BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_ALT4_NAME, anno!=null?anno.name():boon.getClass().getSimpleName()); + BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_KEY_ALT4_WEBSITE, anno!=null?anno.website():BãßBȍőnConstantsʸᴰ.STR_EMPTY); + } + } + default String BȍőnAlt4Value() { return GET_BBC().GET_STR(BãßBȍőnPartKeyʸᴰ.ALT_4_VALUE); } default String BãßAlt4Name() { - return getClass().getAnnotation(BãßBȍőnPartAlt4Infoʸᴰ.class).name(); + return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_ALT4_NAME); } default String BãßAlt4Website() { - return getClass().getAnnotation(BãßBȍőnPartAlt4Infoʸᴰ.class).website(); + return GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_STR(Ꝑŕḯṿª₮ḕ.GHOST_KEY_ALT4_WEBSITE); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartKeyʸᴰ.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartKeyʸᴰ.java index 5cb969e2..a55b27d3 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartKeyʸᴰ.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartKeyʸᴰ.java @@ -13,7 +13,6 @@ public enum BãßBȍőnPartKeyʸᴰ implements BãßBȍőnCoffinStoreKeyʸᴰ { MAP_TONE, MAP_CHINA, - MAP_CACHE, ALT_1_VALUE, ALT_2_VALUE, diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartʸᴰ.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartʸᴰ.java index 14493de4..745633e0 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartʸᴰ.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/BãßBȍőnPartʸᴰ.java @@ -4,13 +4,27 @@ import java.util.Map; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnInitMarkerʸᴰ; import love.distributedrebirth.bassboonyd.DefaultEnumSetʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnInitMethodʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ; -@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -public interface BãßBȍőnPartʸᴰ> extends DefaultEnumSetʸᴰ, BãßBȍőnCoffinStoreʸᴰ { +@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")// +public interface BãßBȍőnPartʸᴰ> extends DefaultEnumSetʸᴰ { + + public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { + private static final String GHOST_KEY_LENGTH = "length"; + + @BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ(args = BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BBC) + private static void initMapTone(BãßBȍőnCoffinOpenʸᴰ BBC) { + BBC.PUT_MAP(BãßBȍőnPartKeyʸᴰ.MAP_TONE); + } + + @BãßBȍőnꝐŕḯṿª₮ḕInitʸᴰ(args = BãßBȍőnꝐŕḯṿª₮ḕInitArgsʸᴰ.BBC) + private static void initMapChina(BãßBȍőnCoffinOpenʸᴰ BBC) { + BBC.PUT_MAP(BãßBȍőnPartKeyʸᴰ.MAP_CHINA); + } + } default String BȍőnDialTone() { return GET_BBC().GET_STR(BãßBȍőnPartKeyʸᴰ.DIAL_TONE); @@ -42,35 +56,12 @@ public interface BãßBȍőnPartʸᴰ> extends return (T) mapChina.get(chinaKey); } - public static class Init implements BãßBȍőnInitMarkerʸᴰ { - - @BãßBȍőnInitMethodʸᴰ - private static void initMapTone(BãßBȍőnCoffinOpenʸᴰ BBC) { - BBC.PUT_MAP(BãßBȍőnPartKeyʸᴰ.MAP_TONE); - } - - @BãßBȍőnInitMethodʸᴰ - private static void initMapChina(BãßBȍőnCoffinOpenʸᴰ BBC) { - BBC.PUT_MAP(BãßBȍőnPartKeyʸᴰ.MAP_CHINA); - } - - @BãßBȍőnInitMethodʸᴰ - private static void initMapCache(BãßBȍőnCoffinOpenʸᴰ BBC) { - BBC.PUT_MAP(BãßBȍőnPartKeyʸᴰ.MAP_CACHE); - } - } - - public static class MapCacheKey { - private static final String LENGTH = "length"; - } - default int BãßĦǿɇṽḝę̃ɬḪễïđ() { - Map mapCache = GET_BBC().GET_MAP_OBJ(BãßBȍőnPartKeyʸᴰ.MAP_CACHE); - Integer length = Integer.class.cast(mapCache.get(MapCacheKey.LENGTH)); - if (length == null) { - length = BãßInstances().length; - mapCache.put(MapCacheKey.LENGTH, length); + Integer result = GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_INT(Ꝑŕḯṿª₮ḕ.GHOST_KEY_LENGTH); + if (result == null) { + result = BãßInstances().length; + GET_BBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(Ꝑŕḯṿª₮ḕ.GHOST_KEY_LENGTH, result); } - return length; + return result; } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T02PartBinary.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T02PartBinary.java index 867a89af..96a5f368 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T02PartBinary.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T02PartBinary.java @@ -1,26 +1,23 @@ package love.distributedrebirth.numberxd.base2t.part; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnClassInfoʸᴰ(name = "T02PartBinary", purpose = "The distribution by 2 (low/high).") public enum T02PartBinary implements BãßBȍőnPartʸᴰ { - + PART_1("˧", "低", "low"), PART_2("꜔", "高", "high"), ; - private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public final BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } - public final static T02PartBinary DEFAULT = T02PartBinary.PART_1; + public final static T02PartBinary STATIC = T02PartBinary.PART_1; private T02PartBinary(String dialTone, String chinaKey, String chinaValue) { - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); - BBC.BOON_INIT(this); + BOON_INIT(BBC -> { + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); + }); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T03PartTrit.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T03PartTrit.java index af4412d4..8309edbf 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T03PartTrit.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T03PartTrit.java @@ -1,27 +1,24 @@ package love.distributedrebirth.numberxd.base2t.part; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnClassInfoʸᴰ(name = "T03PartTrit", purpose = "The distribution by 3 (number123).") public enum T03PartTrit implements BãßBȍőnPartʸᴰ { - + PART_1("˦","一","1"), PART_2("˧","二","2"), PART_3("˨","三","3"), ; - private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public final BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } - public final static T03PartTrit DEFAULT = T03PartTrit.PART_1; + public final static T03PartTrit STATIC = T03PartTrit.PART_1; private T03PartTrit(String dialTone, String chinaKey, String chinaValue) { - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); - BBC.BOON_INIT(this); + BOON_INIT(BBC -> { + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); + }); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T04PartQuad.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T04PartQuad.java index e9f6c9f6..15714588 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T04PartQuad.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T04PartQuad.java @@ -1,8 +1,6 @@ package love.distributedrebirth.numberxd.base2t.part; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @@ -11,25 +9,24 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnPartAlt2Infoʸᴰ(name = "Cardinal direction key", website = "https://simple.wikipedia.org/wiki/Cardinal_direction") @BãßBȍőnPartAlt3Infoʸᴰ(name = "Cardinal direction value", website = "https://simple.wikipedia.org/wiki/Cardinal_direction") public enum T04PartQuad implements BãßBȍőnPartAlt3ʸᴰ { - + PART_1("˥","仙","HallA [the immortal]","北","N","north"), PART_2("꜒","上","above [the] ", "東", "E","east"), PART_3("꜖","主","lords [of]", "西", "W","west"), PART_4("˩","天","heaven","南", "S","south"), ; - private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public final BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } - public final static T04PartQuad DEFAULT = T04PartQuad.PART_1; + public final static T04PartQuad STATIC = T04PartQuad.PART_1; private T04PartQuad(String dialTone, String chinaKey, String chinaValue, String alt1Value, String alt2Value, String alt3Value) { - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_2_VALUE, alt2Value); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_3_VALUE, alt3Value); - BBC.BOON_INIT(this); + BOON_INIT(BBC -> { + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_2_VALUE, alt2Value); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_3_VALUE, alt3Value); + }); } public T02PartBinary splitPartBinary(T02PartBinary part) { diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T05PartPental.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T05PartPental.java index 9027f0f9..9fe3ab60 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T05PartPental.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T05PartPental.java @@ -1,8 +1,6 @@ package love.distributedrebirth.numberxd.base2t.part; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @@ -10,7 +8,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnPartAlt1Infoʸᴰ(name = "Pentagram", website = "https://en.wikipedia.org/wiki/Pentagram") @BãßBȍőnPartAlt2Infoʸᴰ(name = "Pythagorean Interpretations", website = "http://wisdomofhypatia.com/OM/BA/PP.html") public enum T05PartPental implements BãßBȍőnPartAlt2ʸᴰ { - + PART_1("˥","火","fire", "EI","heile"), PART_2("˦","水","water","U", "hudor"), PART_3("˧","木","wood" ,"I", "idea"), @@ -18,16 +16,15 @@ public enum T05PartPental implements BãßBȍőnPartAlt2ʸᴰ { PART_5("˩","土","earth","G", "gaia"), ; - private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public final BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } - public final static T05PartPental DEFAULT = T05PartPental.PART_1; + public final static T05PartPental STATIC = T05PartPental.PART_1; private T05PartPental(String dialTone, String chinaKey, String chinaValue, String alt1Value, String alt2Value) { - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_2_VALUE, alt2Value); - BBC.BOON_INIT(this); + BOON_INIT(BBC -> { + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_2_VALUE, alt2Value); + }); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T06PartSeximal.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T06PartSeximal.java index 456e82bf..0497c5f2 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T06PartSeximal.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T06PartSeximal.java @@ -1,15 +1,13 @@ package love.distributedrebirth.numberxd.base2t.part; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnClassInfoʸᴰ(name = "T06PartSeximal", purpose = "The distribution by 6 (numbers4/9).") @BãßBȍőnPartAlt1Infoʸᴰ(name = "ADFGVX cipher", website = "https://en.wikipedia.org/wiki/ADFGVX_cipher") public enum T06PartSeximal implements BãßBȍőnPartAlt1ʸᴰ { - + PART_1("˦","四","4","A"), PART_2("˨","五","5","D"), PART_3("꜓","六","6","F"), @@ -18,16 +16,15 @@ public enum T06PartSeximal implements BãßBȍőnPartAlt1ʸᴰ { PART_6("꜏","九","9","X"), ; - private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public final BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } - public final static T06PartSeximal DEFAULT = T06PartSeximal.PART_1; + public final static T06PartSeximal STATIC = T06PartSeximal.PART_1; private T06PartSeximal(String dialTone, String chinaKey, String chinaValue, String alt1Value) { - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); - BBC.BOON_INIT(this); + BOON_INIT(BBC -> { + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); + }); } public T02PartBinary splitPartBinary() { diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T07PartPlanIt.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T07PartPlanIt.java index a2fd1555..d3b84706 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T07PartPlanIt.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T07PartPlanIt.java @@ -1,15 +1,13 @@ package love.distributedrebirth.numberxd.base2t.part; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnClassInfoʸᴰ(name = "T07PartPlanIt", purpose = "The distribution by 7 (planets).") @BãßBȍőnPartAlt1Infoʸᴰ(name = "Fallen sign", website = "https://en.wikipedia.org/wiki/Classical_planet#Western_astrology") public enum T07PartPlanIt implements BãßBȍőnPartAlt1ʸᴰ { - + PART_1("˥","♎︎","libra", "天秤座"), PART_2("꜉","♏︎","scorpio", "天蠍座"), PART_3("꜋","♓︎","pisces", "雙魚座"), @@ -19,15 +17,14 @@ public enum T07PartPlanIt implements BãßBȍőnPartAlt1ʸᴰ { PART_7("˩","♈︎","aries", "白羊座"), ; - private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public final BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } - public final static T07PartPlanIt DEFAULT = T07PartPlanIt.PART_1; + public final static T07PartPlanIt STATIC = T07PartPlanIt.PART_1; private T07PartPlanIt(String dialTone, String chinaKey, String chinaValue, String alt1Value) { - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); - BBC.BOON_INIT(this); + BOON_INIT(BBC -> { + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); + }); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T08PartOctal.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T08PartOctal.java index cedde9b7..1153c816 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T08PartOctal.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T08PartOctal.java @@ -1,14 +1,12 @@ package love.distributedrebirth.numberxd.base2t.part; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnClassInfoʸᴰ(name = "T08PartOctal", purpose = "The distribution by 8 (human part).") public enum T08PartOctal implements BãßBȍőnPartShiftBitsʸᴰ { - + PART_1("˥","心","heart",0), PART_2("˩","頭","head", 3), PART_3("꜒","眼","eye", 6), @@ -21,16 +19,15 @@ public enum T08PartOctal implements BãßBȍőnPartShiftBitsʸᴰ public final static int BIT_COUNT = 3; private final static byte BITMASK = 0x07; - private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public final BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } - public final static T08PartOctal DEFAULT = T08PartOctal.PART_1; + public final static T08PartOctal STATIC = T08PartOctal.PART_1; private T08PartOctal(String dialTone, String chinaKey, String chinaValue, int shiftBits) { - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.SHIFT_BITS, Integer.valueOf(shiftBits)); - BBC.BOON_INIT(this); + BOON_INIT(BBC -> { + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.SHIFT_BITS, Integer.valueOf(shiftBits)); + }); } public static T08PartOctal indexOf(T08PartOctal group, int value) { diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T09PartNonary.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T09PartNonary.java index dcf5a2b0..a617434c 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T09PartNonary.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T09PartNonary.java @@ -1,14 +1,12 @@ package love.distributedrebirth.numberxd.base2t.part; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnClassInfoʸᴰ(name = "T09PartNonary", purpose = "The distribution by 9 (colors).") public enum T09PartNonary implements BãßBȍőnPartʸᴰ { - + PART_1 ("˦","藍","blue"), PART_2 ("˨","皓","white"), PART_3 ("꜓","紅","red"), @@ -20,14 +18,13 @@ public enum T09PartNonary implements BãßBȍőnPartʸᴰ { PART_9 ("꜑","紺","purple"), ; - private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public final BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } - public final static T09PartNonary DEFAULT = T09PartNonary.PART_1; + public final static T09PartNonary STATIC = T09PartNonary.PART_1; private T09PartNonary(String dialTone, String chinaKey, String chinaValue) { - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); - BBC.BOON_INIT(this); + BOON_INIT(BBC -> { + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); + }); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T10PartDecimal.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T10PartDecimal.java index 010ad0da..87c35a26 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T10PartDecimal.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T10PartDecimal.java @@ -1,8 +1,6 @@ package love.distributedrebirth.numberxd.base2t.part; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @@ -10,7 +8,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnPartAlt1Infoʸᴰ(name = "Tone Letter LR", website = "https://en.wikipedia.org/wiki/Tone_letter") @BãßBȍőnPartAlt2Infoʸᴰ(name = "Tone Letter RL", website = "https://en.wikipedia.org/wiki/Tone_letter") public enum T10PartDecimal implements BãßBȍőnPartAlt2ʸᴰ { - + PART_1 ("˥","零","zero", "꜌","꜒"), PART_2 ("˦","壹","one", "꜋","꜓"), PART_3 ("˧","贰","two", "꜊","꜔"), @@ -23,16 +21,15 @@ public enum T10PartDecimal implements BãßBȍőnPartAlt2ʸᴰ { PART_10("꜒","玖","nine", "˩","꜍"), ; - private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public final BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } - public final static T10PartDecimal DEFAULT = T10PartDecimal.PART_1; + public final static T10PartDecimal STATIC = T10PartDecimal.PART_1; private T10PartDecimal(String dialTone, String chinaKey, String chinaValue, String alt1Value, String alt2Value) { - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_2_VALUE, alt2Value); - BBC.BOON_INIT(this); + BOON_INIT(BBC -> { + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_2_VALUE, alt2Value); + }); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T11PartUndecimal.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T11PartUndecimal.java index 13962eac..1defed5c 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T11PartUndecimal.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T11PartUndecimal.java @@ -1,15 +1,13 @@ package love.distributedrebirth.numberxd.base2t.part; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnClassInfoʸᴰ(name = "T11PartUndecimal", purpose = "The distribution by 11 (human activity).") @BãßBȍőnPartAlt1Infoʸᴰ(name = "Tamil numerals", website = "https://en.wikipedia.org/wiki/Tamil_numerals") public enum T11PartUndecimal implements BãßBȍőnPartAlt1ʸᴰ { - + PART_1 ("˥","走","walk", "௦"), PART_2 ("꜈","跑","run", "௧"), PART_3 ("꜉","坐","sit", "௨"), @@ -23,15 +21,14 @@ public enum T11PartUndecimal implements BãßBȍőnPartAlt1ʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public final BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } - public final static T11PartUndecimal DEFAULT = T11PartUndecimal.PART_1; + public final static T11PartUndecimal STATIC = T11PartUndecimal.PART_1; private T11PartUndecimal(String dialTone, String chinaKey, String chinaValue, String alt1Value) { - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); - BBC.BOON_INIT(this); + BOON_INIT(BBC -> { + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); + }); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T12PartUncial.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T12PartUncial.java index fd2cc570..05b51b2a 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T12PartUncial.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T12PartUncial.java @@ -1,15 +1,13 @@ package love.distributedrebirth.numberxd.base2t.part; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnClassInfoʸᴰ(name = "T12PartUncial", purpose = "The distribution by 12 (emperor).") @BãßBȍőnPartAlt1Infoʸᴰ(name = "Transdecimal symbols", website = "https://en.wikipedia.org/wiki/Duodecimal#Transdecimal_symbols") public enum T12PartUncial implements BãßBȍőnPartAlt1ʸᴰ { - + PART_1 ("˥","日","sun", "0"), PART_2 ("˧","月","moon", "1"), PART_3 ("˩","星","star", "2"), @@ -24,15 +22,14 @@ public enum T12PartUncial implements BãßBȍőnPartAlt1ʸᴰ { PART_12("꜑","亞","nozero", "\u218b"), // TURNED DIGIT THREE ; - private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public final BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } - public final static T12PartUncial DEFAULT = T12PartUncial.PART_1; + public final static T12PartUncial STATIC = T12PartUncial.PART_1; private T12PartUncial(String dialTone, String chinaKey, String chinaValue, String alt1Value) { - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); - BBC.BOON_INIT(this); + BOON_INIT(BBC -> { + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); + }); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T16PartHex.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T16PartHex.java index aa2ecee8..4853e0ca 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T16PartHex.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T16PartHex.java @@ -1,15 +1,13 @@ package love.distributedrebirth.numberxd.base2t.part; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnClassInfoʸᴰ(name = "T16PartHex", purpose = "The distribution by 16 (elements).") @BãßBȍőnPartAlt1Infoʸᴰ(name = "Hexadecimal", website = "https://en.wikipedia.org/wiki/Hexadecimal") public enum T16PartHex implements BãßBȍőnPartAlt1ʸᴰ { - + PART_1 ("˥","氫","hydrogen", "0"), PART_2 ("˦","氦","helium", "1"), PART_3 ("˨","鋰","lithium", "2"), @@ -28,16 +26,15 @@ public enum T16PartHex implements BãßBȍőnPartAlt1ʸᴰ { PART_16("꜑","硫","sulfur", "F"), ; - private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public final BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } - public final static T16PartHex DEFAULT = T16PartHex.PART_1; + public final static T16PartHex STATIC = T16PartHex.PART_1; private T16PartHex(String dialTone, String chinaKey, String chinaValue, String alt1Value) { - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); - BBC.BOON_INIT(this); + BOON_INIT(BBC -> { + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); + }); } public T02PartBinary splitPartBinary(T04PartQuad part) { diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T20PartScore.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T20PartScore.java index 806476fd..9742a131 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T20PartScore.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T20PartScore.java @@ -5,9 +5,7 @@ import java.util.Collections; import java.util.Map; import java.util.stream.Collectors; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @@ -17,7 +15,7 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnPartAlt3Infoʸᴰ(name = "Vigesimal Alternative", website = "https://en.wikipedia.org/wiki/Vigesimal#Places") @BãßBȍőnPartAlt4Infoʸᴰ(name = "Open Location Code", website = "https://en.wikipedia.org/wiki/Open_Location_Code") public enum T20PartScore implements BãßBȍőnPartAlt4ʸᴰ { - + PART_1 ("˥", "尧", "yotta", "Y", "0", "0", "2"), PART_2 ("˦", "泽", "zetta", "Z", "1", "1", "3"), PART_3 ("˧", "艾", "exa", "E", "2", "2", "4"), @@ -42,20 +40,20 @@ public enum T20PartScore implements BãßBȍőnPartAlt4ʸᴰ { private static final Map OPENLC_MAP = Collections.unmodifiableMap( Arrays.asList(values()).stream().collect(Collectors.toMap(v -> v.BȍőnAlt4Value(), v -> v))); - private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public final BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } - public final static T20PartScore DEFAULT = T20PartScore.PART_1; + + public final static T20PartScore STATIC = T20PartScore.PART_1; private T20PartScore(String dialTone, String chinaKey, String chinaValue, String alt1Value, String alt2Value, String alt3Value, String alt4Value) { - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_2_VALUE, alt2Value); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_3_VALUE, alt3Value); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_4_VALUE, alt4Value); - BBC.BOON_INIT(this); + BOON_INIT(BBC -> { + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_1_VALUE, alt1Value); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_2_VALUE, alt2Value); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_3_VALUE, alt3Value); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.ALT_4_VALUE, alt4Value); + }); } public T20PartScore BãßValueOfOpenLC(String openLCKey) { diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T60PartSexagesimal.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T60PartSexagesimal.java index d673a8cb..92702fd5 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T60PartSexagesimal.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T60PartSexagesimal.java @@ -1,14 +1,12 @@ package love.distributedrebirth.numberxd.base2t.part; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnClassInfoʸᴰ(name = "T60Sexagesimal", purpose = "The distribution by 60 (human food).") public enum T60PartSexagesimal implements BãßBȍőnPartʸᴰ { - + PART_1 ("˥˥","牛","cow"), PART_2 ("˥˦","鸡","chicken"), PART_3 ("˥˧","羊","sheep"), @@ -71,14 +69,13 @@ public enum T60PartSexagesimal implements BãßBȍőnPartʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public final BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } - public final static T60PartSexagesimal DEFAULT = T60PartSexagesimal.PART_1; + public final static T60PartSexagesimal STATIC = T60PartSexagesimal.PART_1; private T60PartSexagesimal(String dialTone, String chinaKey, String chinaValue) { - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); - BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); - BBC.BOON_INIT(this); + BOON_INIT(BBC -> { + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.DIAL_TONE, dialTone); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_KEY, chinaKey); + BBC.PUT_OBJ(BãßBȍőnPartKeyʸᴰ.CHINA_VALUE, chinaValue); + }); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V006Tixte.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V006Tixte.java index 77f2eee6..218d7912 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V006Tixte.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V006Tixte.java @@ -13,8 +13,8 @@ import love.distributedrebirth.numberxd.base2t.part.T08PartOctal; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") public final class V006Tixte implements BaseNumber { - public static int BIT_COUNT = T08PartOctal.BIT_COUNT * T02PartBinary.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ(); - private final T08PartOctal[] values = new T08PartOctal[T02PartBinary.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()]; + public static int BIT_COUNT = T08PartOctal.BIT_COUNT * T02PartBinary.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ(); + private final T08PartOctal[] values = new T08PartOctal[T02PartBinary.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; public V006Tixte() { this(T08PartOctal.PART_1, T08PartOctal.PART_1); diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V009Tyte.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V009Tyte.java index c46398e7..1bdfa817 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V009Tyte.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V009Tyte.java @@ -15,8 +15,8 @@ import love.distributedrebirth.numberxd.base2t.part.T08PartOctal; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") public final class V009Tyte implements BaseNumberTyte { - public static int BIT_COUNT = T08PartOctal.BIT_COUNT * T03PartTrit.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ(); - private final T08PartOctal[] values = new T08PartOctal[T03PartTrit.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()]; + public static int BIT_COUNT = T08PartOctal.BIT_COUNT * T03PartTrit.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ(); + private final T08PartOctal[] values = new T08PartOctal[T03PartTrit.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; public V009Tyte() { this(T08PartOctal.PART_1, T08PartOctal.PART_1, T08PartOctal.PART_1); diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V018Tord.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V018Tord.java index b8cfa872..a24cc419 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V018Tord.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V018Tord.java @@ -16,8 +16,8 @@ import love.distributedrebirth.numberxd.base2t.part.T08PartOctal; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") public final class V018Tord implements BaseNumberTyte { - public static int BIT_COUNT = V009Tyte.BIT_COUNT * T02PartBinary.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ(); - private V009Tyte[] values = new V009Tyte[T02PartBinary.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()]; + public static int BIT_COUNT = V009Tyte.BIT_COUNT * T02PartBinary.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ(); + private V009Tyte[] values = new V009Tyte[T02PartBinary.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; public V018Tord() { this(new V009Tyte(), new V009Tyte()); @@ -76,7 +76,7 @@ public final class V018Tord implements BaseNumberTyte { @Override public void fillOctalsByClone(BaseAppenderOctal appender) { - T02PartBinary.DEFAULT.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); + T02PartBinary.STATIC.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); } @Override @@ -86,6 +86,6 @@ public final class V018Tord implements BaseNumberTyte { @Override public void fillTytesByReference(BaseAppenderTyte appender) { - T02PartBinary.DEFAULT.BãßVoorElk(v -> getValue(v).fillTytesByReference(appender)); + T02PartBinary.STATIC.BãßVoorElk(v -> getValue(v).fillTytesByReference(appender)); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V027Temvig.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V027Temvig.java index 4e8ebb4f..ca7d80e1 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V027Temvig.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V027Temvig.java @@ -14,8 +14,8 @@ import love.distributedrebirth.numberxd.base2t.part.T03PartTrit; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") public final class V027Temvig implements BaseNumberTyte { - public static int BIT_COUNT = V009Tyte.BIT_COUNT * T03PartTrit.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ(); - private V009Tyte[] values = new V009Tyte[T03PartTrit.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()]; + public static int BIT_COUNT = V009Tyte.BIT_COUNT * T03PartTrit.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ(); + private V009Tyte[] values = new V009Tyte[T03PartTrit.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; public V027Temvig() { this(new V009Tyte(), new V009Tyte(), new V009Tyte()); @@ -55,7 +55,7 @@ public final class V027Temvig implements BaseNumberTyte { @Override public void fillOctalsByClone(BaseAppenderOctal appender) { - T03PartTrit.DEFAULT.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); + T03PartTrit.STATIC.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); } @Override @@ -65,6 +65,6 @@ public final class V027Temvig implements BaseNumberTyte { @Override public void fillTytesByReference(BaseAppenderTyte appender) { - T03PartTrit.DEFAULT.BãßVoorElk(v -> getValue(v).fillTytesByReference(appender)); + T03PartTrit.STATIC.BãßVoorElk(v -> getValue(v).fillTytesByReference(appender)); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V036Teger.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V036Teger.java index e132e1da..00a29ca5 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V036Teger.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V036Teger.java @@ -15,8 +15,8 @@ import love.distributedrebirth.numberxd.base2t.part.T04PartQuad; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") public final class V036Teger implements BaseNumberTyte { - public static int BIT_COUNT = V018Tord.BIT_COUNT * T02PartBinary.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ(); - private V018Tord[] values = new V018Tord[T02PartBinary.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()]; + public static int BIT_COUNT = V018Tord.BIT_COUNT * T02PartBinary.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ(); + private V018Tord[] values = new V018Tord[T02PartBinary.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; public V036Teger() { this(new V018Tord(), new V018Tord()); @@ -77,7 +77,7 @@ public final class V036Teger implements BaseNumberTyte { @Override public void fillOctalsByClone(BaseAppenderOctal appender) { - T02PartBinary.DEFAULT.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); + T02PartBinary.STATIC.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); } @Override @@ -87,6 +87,6 @@ public final class V036Teger implements BaseNumberTyte { @Override public void fillTytesByReference(BaseAppenderTyte appender) { - T02PartBinary.DEFAULT.BãßVoorElk(v -> getValue(v).fillTytesByReference(appender)); + T02PartBinary.STATIC.BãßVoorElk(v -> getValue(v).fillTytesByReference(appender)); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V042Traw.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V042Traw.java index 097352f1..444a0347 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V042Traw.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V042Traw.java @@ -12,8 +12,8 @@ import love.distributedrebirth.numberxd.base2t.part.T07PartPlanIt; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") public final class V042Traw implements BaseNumber { - public static int BIT_COUNT = V006Tixte.BIT_COUNT * T07PartPlanIt.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ(); - private V006Tixte[] values = new V006Tixte[T07PartPlanIt.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()]; + public static int BIT_COUNT = V006Tixte.BIT_COUNT * T07PartPlanIt.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ(); + private V006Tixte[] values = new V006Tixte[T07PartPlanIt.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; public V042Traw() { for (int i=0;i { @Override public void fillOctalsByClone(BaseAppenderOctal appender) { - T07PartPlanIt.DEFAULT.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); + T07PartPlanIt.STATIC.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V072Tong.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V072Tong.java index cdd742e0..69139d66 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V072Tong.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V072Tong.java @@ -16,8 +16,8 @@ import love.distributedrebirth.numberxd.base2t.part.T08PartOctal; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") public final class V072Tong implements BaseNumberTyte { - public static int BIT_COUNT = V036Teger.BIT_COUNT * T02PartBinary.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ(); - private V036Teger[] values = new V036Teger[T02PartBinary.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()]; + public static int BIT_COUNT = V036Teger.BIT_COUNT * T02PartBinary.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ(); + private V036Teger[] values = new V036Teger[T02PartBinary.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; public V072Tong() { this(new V036Teger(), new V036Teger()); @@ -68,7 +68,7 @@ public final class V072Tong implements BaseNumberTyte { @Override public void fillOctalsByClone(BaseAppenderOctal appender) { - T02PartBinary.DEFAULT.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); + T02PartBinary.STATIC.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); } @Override @@ -78,6 +78,6 @@ public final class V072Tong implements BaseNumberTyte { @Override public void fillTytesByReference(BaseAppenderTyte appender) { - T02PartBinary.DEFAULT.BãßVoorElk(v -> getValue(v).fillTytesByReference(appender)); + T02PartBinary.STATIC.BãßVoorElk(v -> getValue(v).fillTytesByReference(appender)); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V144Tocta.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V144Tocta.java index e796edad..988e06ef 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V144Tocta.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/type/V144Tocta.java @@ -18,8 +18,8 @@ import love.distributedrebirth.numberxd.base2t.part.T16PartHex; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") public final class V144Tocta implements BaseNumberTyte { - public static int BIT_COUNT = V072Tong.BIT_COUNT * T02PartBinary.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ(); - private V072Tong[] values = new V072Tong[T02PartBinary.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()]; + public static int BIT_COUNT = V072Tong.BIT_COUNT * T02PartBinary.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ(); + private V072Tong[] values = new V072Tong[T02PartBinary.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; public V144Tocta() { this(new V072Tong(), new V072Tong()); @@ -84,7 +84,7 @@ public final class V144Tocta implements BaseNumberTyte { @Override public void fillOctalsByClone(BaseAppenderOctal appender) { - T02PartBinary.DEFAULT.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); + T02PartBinary.STATIC.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); } @Override @@ -94,6 +94,6 @@ public final class V144Tocta implements BaseNumberTyte { @Override public void fillTytesByReference(BaseAppenderTyte appender) { - T02PartBinary.DEFAULT.BãßVoorElk(v -> getValue(v).fillTytesByReference(appender)); + T02PartBinary.STATIC.BãßVoorElk(v -> getValue(v).fillTytesByReference(appender)); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000348ˣᴸ.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000348ˣᴸ.java index 474454d9..a79d4b2b 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000348ˣᴸ.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000348ˣᴸ.java @@ -13,8 +13,8 @@ import love.distributedrebirth.numberxd.base2t.type.V042Traw; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") public class V0x000348ˣᴸ implements BaseNumberˣᴸ { - public static int BIT_COUNT = V042Traw.BIT_COUNT * T20PartScore.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ(); - private V042Traw[] values = new V042Traw[T20PartScore.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()]; + public static int BIT_COUNT = V042Traw.BIT_COUNT * T20PartScore.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ(); + private V042Traw[] values = new V042Traw[T20PartScore.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; public V0x000348ˣᴸ() { for (int i=0;i { @Override public void fillOctalsByClone(BaseAppenderOctal appender) { - T20PartScore.DEFAULT.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); + T20PartScore.STATIC.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000654ˣᴸ.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000654ˣᴸ.java index a80e5dc1..9b13873a 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000654ˣᴸ.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000654ˣᴸ.java @@ -15,8 +15,8 @@ import love.distributedrebirth.numberxd.base2t.type.V027Temvig; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") public class V0x000654ˣᴸ implements BaseNumberTyteˣᴸ { - public static int BIT_COUNT = V027Temvig.BIT_COUNT * T60PartSexagesimal.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ(); - private V027Temvig[] values = new V027Temvig[T60PartSexagesimal.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()]; + public static int BIT_COUNT = V027Temvig.BIT_COUNT * T60PartSexagesimal.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ(); + private V027Temvig[] values = new V027Temvig[T60PartSexagesimal.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; public V0x000654ˣᴸ() { for (int i=0;i { @Override public void fillOctalsByClone(BaseAppenderOctal appender) { - T60PartSexagesimal.DEFAULT.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); + T60PartSexagesimal.STATIC.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); } @Override @@ -66,6 +66,6 @@ public class V0x000654ˣᴸ implements BaseNumberTyteˣᴸ { @Override public void fillTytesByReference(BaseAppenderTyte appender) { - T60PartSexagesimal.DEFAULT.BãßVoorElk(v -> getValue(v).fillTytesByReference(appender)); + T60PartSexagesimal.STATIC.BãßVoorElk(v -> getValue(v).fillTytesByReference(appender)); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000CA8ˣᴸ.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000CA8ˣᴸ.java index c678ead1..371edb49 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000CA8ˣᴸ.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000CA8ˣᴸ.java @@ -14,8 +14,8 @@ import love.distributedrebirth.numberxd.base2t.part.T02PartBinary; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") public class V0x000CA8ˣᴸ implements BaseNumberTyteˣᴸ { - public static int BIT_COUNT = V0x000654ˣᴸ.BIT_COUNT * T02PartBinary.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ(); - private V0x000654ˣᴸ[] values = new V0x000654ˣᴸ[T02PartBinary.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()]; + public static int BIT_COUNT = V0x000654ˣᴸ.BIT_COUNT * T02PartBinary.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ(); + private V0x000654ˣᴸ[] values = new V0x000654ˣᴸ[T02PartBinary.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; public V0x000CA8ˣᴸ() { this(new V0x000654ˣᴸ(), new V0x000654ˣᴸ()); @@ -54,7 +54,7 @@ public class V0x000CA8ˣᴸ implements BaseNumberTyteˣᴸ { @Override public void fillOctalsByClone(BaseAppenderOctal appender) { - T02PartBinary.DEFAULT.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); + T02PartBinary.STATIC.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); } @Override @@ -64,6 +64,6 @@ public class V0x000CA8ˣᴸ implements BaseNumberTyteˣᴸ { @Override public void fillTytesByReference(BaseAppenderTyte appender) { - T02PartBinary.DEFAULT.BãßVoorElk(v -> getValue(v).fillTytesByReference(appender)); + T02PartBinary.STATIC.BãßVoorElk(v -> getValue(v).fillTytesByReference(appender)); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x0013B0ˣᴸ.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x0013B0ˣᴸ.java index 8689a1ca..53b70bb1 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x0013B0ˣᴸ.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x0013B0ˣᴸ.java @@ -12,8 +12,8 @@ import love.distributedrebirth.numberxd.base2t.part.T06PartSeximal; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") public class V0x0013B0ˣᴸ implements BaseNumberˣᴸ { - public static int BIT_COUNT = V0x000348ˣᴸ.BIT_COUNT * T06PartSeximal.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ(); - private V0x000348ˣᴸ[] values = new V0x000348ˣᴸ[T06PartSeximal.DEFAULT.BãßĦǿɇṽḝę̃ɬḪễïđ()]; + public static int BIT_COUNT = V0x000348ˣᴸ.BIT_COUNT * T06PartSeximal.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ(); + private V0x000348ˣᴸ[] values = new V0x000348ˣᴸ[T06PartSeximal.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; public V0x0013B0ˣᴸ() { for (int i=0;i { @Override public void fillOctalsByClone(BaseAppenderOctal appender) { - T06PartSeximal.DEFAULT.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); + T06PartSeximal.STATIC.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/unicode/BaseGlyphSet.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/unicode/BaseGlyphSet.java index ed8517f7..308f7a7c 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/unicode/BaseGlyphSet.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/unicode/BaseGlyphSet.java @@ -1,5 +1,6 @@ package love.distributedrebirth.numberxd.unicode; +import java.math.BigInteger; import java.text.DecimalFormat; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; @@ -20,13 +21,20 @@ public enum BaseGlyphSet implements DefaultEnumSetᴶᴹˣ T10PartDecimal.DEFAULT.BãßVoorElk(x -> v.add(Integer.toString(x.BȍőnRangTelNul())))), - new BaseGlyphSetNumber(v -> T16PartHex.DEFAULT.BãßVoorElk(x -> v.add(x.BȍőnAlt1Value()))), + new BaseGlyphSetNumber(v -> T10PartDecimal.STATIC.BãßVoorElk(x -> v.add(Integer.toString(x.BȍőnRangTelNul())))), + new BaseGlyphSetNumber(v -> T16PartHex.STATIC.BãßVoorElk(x -> v.add(x.BȍőnAlt1Value()))), new BaseGlyphSetNumber("1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R")), LATIN_DTMF( - new BaseGlyphSetNumber(v -> T10PartDecimal.DEFAULT.BãßVoorElk(x -> v.add(x.BȍőnChinaValue()))).withSeperator(BãßBȍőnConstantsʸᴰ.STR_SPACE), + new BaseGlyphSetNumber(v -> T10PartDecimal.STATIC.BãßVoorElk(x -> v.add(x.BȍőnChinaValue()))).withSeperator(BãßBȍőnConstantsʸᴰ.STR_SPACE), new BaseGlyphSetNumber("1","2","3","A","4","5","6","B","7","8","9","C","*","0","#","D"), - null), + new BaseGlyphSetNumber(v -> T10PartDecimal.STATIC.BãßVoorElk(x -> { + if (T10PartDecimal.PART_10 == x) { + v.add("ten"); + } else { + v.add(T10PartDecimal.STATIC.BãßInstances()[x.BȍőnRangTelEen()].BȍőnChinaValue()); // 1 to 9 + } + }), "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety", + "one hundred", "two hundred", "three hundred", "four hundred", "five hundred", "six hundred", "seven hundred", "eight hundred", "nine hundred")), LATIN_TOP( new BaseGlyphSetNumber("⁰","¹","²","³","⁴","⁵","⁶","⁷","⁸","⁹"), new BaseGlyphSetNumber("⁰","¹","²","³","⁴","⁵","⁶","⁷","⁸","⁹","ᵃ","ᵇ","ᶜ","ᵈ","ᵉ","ᶠ"), @@ -45,23 +53,23 @@ public enum BaseGlyphSet implements DefaultEnumSetᴶᴹˣ T10PartDecimal.DEFAULT.BãßVoorElk(x -> v.add(x.BȍőnDialTone()))), - new BaseGlyphSetNumber(v -> T16PartHex.DEFAULT.BãßVoorElk(x -> v.add(x.BȍőnDialTone()))), + new BaseGlyphSetNumber(v -> T10PartDecimal.STATIC.BãßVoorElk(x -> v.add(x.BȍőnDialTone()))), + new BaseGlyphSetNumber(v -> T16PartHex.STATIC.BãßVoorElk(x -> v.add(x.BȍőnDialTone()))), new BaseGlyphSetNumber("꜊꜈","꜊꜉","꜊꜋","꜊꜌","꜊꜍","꜊꜎","꜊꜏","꜊꜐","꜊꜑","˧˥","˧˦","˧˨","˧˩","˧꜒","˧꜓","˧꜔","˧꜕","˧꜖","꜏˥","꜏˦","꜏˧","꜏˨","꜏˩","꜏꜍","꜏꜎","꜏꜐","꜏꜑")), DIPAVALI_LRPATH_TOPHEX( - new BaseGlyphSetNumber(v -> T10PartDecimal.DEFAULT.BãßVoorElk(x -> v.add(x.BȍőnAlt1Value()))), + new BaseGlyphSetNumber(v -> T10PartDecimal.STATIC.BãßVoorElk(x -> v.add(x.BȍőnAlt1Value()))), new BaseGlyphSetNumber("˧˥˩","˧˩˥","˧˥˦","˧˩˨","˧˦˦","˧˨˨","˧˥˥","˧˩˩","˥˩˧","˩˥˧","˥˦˧","˩˨˧","˦˦˧","˨˨˧","˥˥˧","˩˩˧").withAltGlyphSet(BaseGlyphSet.LATIN_TOP), TONE_SCRIPT.BȍőnNumber27()), DIPAVALI_LRPATH_SUBHEX( - new BaseGlyphSetNumber(v -> T10PartDecimal.DEFAULT.BãßVoorElk(x -> v.add(x.BȍőnAlt1Value()))), + new BaseGlyphSetNumber(v -> T10PartDecimal.STATIC.BãßVoorElk(x -> v.add(x.BȍőnAlt1Value()))), new BaseGlyphSetNumber("˧˥˩","˧˩˥","˧˥˦","˧˩˨","˧˦˦","˧˨˨","˧˥˥","˧˩˩","˥˩˧","˩˥˧","˥˦˧","˩˨˧","˦˦˧","˨˨˧","˥˥˧","˩˩˧").withAltGlyphSet(BaseGlyphSet.LATIN_SUB), TONE_SCRIPT.BȍőnNumber27()), DIPAVALI_RLPATH_TOPHEX( - new BaseGlyphSetNumber(v -> T10PartDecimal.DEFAULT.BãßVoorElk(x -> v.add(x.BȍőnAlt2Value()))), + new BaseGlyphSetNumber(v -> T10PartDecimal.STATIC.BãßVoorElk(x -> v.add(x.BȍőnAlt2Value()))), new BaseGlyphSetNumber("꜔꜒꜖","꜔꜖꜒","꜔꜒꜓","꜔꜖꜕","꜔꜓꜓","꜔꜕꜕","꜔꜒꜒","꜔꜖꜖","꜒꜖꜔","꜖꜒꜔","꜒꜓꜔","꜖꜕꜔","꜓꜓꜔","꜕꜕꜔","꜒꜒꜔","꜖꜖꜔").withAltGlyphSet(BaseGlyphSet.LATIN_TOP), TONE_SCRIPT.BȍőnNumber27()), DIPAVALI_RLPATH_SUBHEX( - new BaseGlyphSetNumber(v -> T10PartDecimal.DEFAULT.BãßVoorElk(x -> v.add(x.BȍőnAlt2Value()))), + new BaseGlyphSetNumber(v -> T10PartDecimal.STATIC.BãßVoorElk(x -> v.add(x.BȍőnAlt2Value()))), new BaseGlyphSetNumber("꜔꜒꜖","꜔꜖꜒","꜔꜒꜓","꜔꜖꜕","꜔꜓꜓","꜔꜕꜕","꜔꜒꜒","꜔꜖꜖","꜒꜖꜔","꜖꜒꜔","꜒꜓꜔","꜖꜕꜔","꜓꜓꜔","꜕꜕꜔","꜒꜒꜔","꜖꜖꜔").withAltGlyphSet(BaseGlyphSet.LATIN_SUB), TONE_SCRIPT.BȍőnNumber27()), @@ -96,7 +104,7 @@ public enum BaseGlyphSet implements DefaultEnumSetᴶᴹˣ T10PartDecimal.DEFAULT.BãßVoorElk(x -> v.add(x.BȍőnChinaKey()))), + new BaseGlyphSetNumber(v -> T10PartDecimal.STATIC.BãßVoorElk(x -> v.add(x.BȍőnChinaKey()))), null, null), CHINA_FORMAL_OLD( @@ -164,15 +172,15 @@ public enum BaseGlyphSet implements DefaultEnumSetᴶᴹˣ { + BBC.PUT_OBJ(BaseGlyphSetKeyʸᴰ.NUMBERS, numbers); + BBC.PUT_OBJ(BaseGlyphSetKeyʸᴰ.HEXIMALS, hex); + BBC.PUT_OBJ(BaseGlyphSetKeyʸᴰ.GEMATRIA, gematria); + BBC.PUT_OBJ(BaseGlyphSetKeyʸᴰ.REVERSE_SCRIPT, reverseScript); // TODO: ImGui workaround + }); + printNumber10Count = BȍőnJmxInitGuageCounter("printNumber10Count"); + printNumber16Count = BȍőnJmxInitGuageCounter("printNumber16Count"); + printNumber27Count = BȍőnJmxInitGuageCounter("printNumber27Count"); } public BaseGlyphSetNumber BȍőnNumber10() { @@ -204,6 +212,24 @@ public enum BaseGlyphSet implements DefaultEnumSetᴶᴹˣ= 'a') { + numberDigit = c - 'a' + 10; + } else { + numberDigit = c - '0'; + } + buf16.append(BȍőnPrintNumber10(numberDigit)); + } + return buf16.toString(); + } + public String BȍőnPrintNumber10(int number) { return BȍőnPrintNumber10(number, number); } @@ -231,6 +257,36 @@ public enum BaseGlyphSet implements DefaultEnumSetᴶᴹˣ= 'a') { + numberDigit = c - 'a' + 10; + } else { + numberDigit = c - '0'; + } + if (c2 == 0) { + c2 = numberDigit * 16; + continue; + } else { + c2 = numberDigit + c2; + } + buf16.append(BȍőnPrintNumber16(c2)); + c2 = 0; + } + return buf16.toString(); + } + + public String BȍőnPrintNumber16(int number) { + return BȍőnPrintNumber16(number, number); + } + public String BȍőnPrintNumber16(int number, int numberMax) { printNumber16Count.increment(); String maxDigitNumber = Integer.toHexString(numberMax); @@ -265,6 +321,10 @@ public enum BaseGlyphSet implements DefaultEnumSetᴶᴹˣ> consumer) { - consumer.accept(new BaseAppender() { - - @Override - public void add(String value) { - chars.add(value); - } - }); + public BaseGlyphSetNumber(Consumer> consumer, String...charsExtra) { + consumer.accept(new BaseAppenderAdapter<>(chars)); + for (String charExtra:charsExtra) { + this.chars.add(charExtra); + } } public BaseGlyphSetNumber withAltGlyphSet(BaseGlyphSet altGlyphSet) { diff --git a/gdxapp4d-tos4/src/main/java/love/distributedrebirth/gdxapp4d/tos4/GDXAppTos4.java b/gdxapp4d-tos4/src/main/java/love/distributedrebirth/gdxapp4d/tos4/GDXAppTos4.java index f5bc656e..f6ef241f 100644 --- a/gdxapp4d-tos4/src/main/java/love/distributedrebirth/gdxapp4d/tos4/GDXAppTos4.java +++ b/gdxapp4d-tos4/src/main/java/love/distributedrebirth/gdxapp4d/tos4/GDXAppTos4.java @@ -14,8 +14,7 @@ import com.badlogic.gdx.utils.ScreenUtils; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnClassInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinOpenʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; +import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreKeyʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnPackageInfoʸᴰ; import love.distributedrebirth.bassboonyd.jmx.DefaultEnumInstanceᴶᴹˣ; import love.distributedrebirth.bassboonyd.jmx.GuageCounterᴶᴹˣ; @@ -25,7 +24,7 @@ import net.spookygames.gdx.nativefilechooser.NativeFileChooser; @BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnClassInfoʸᴰ(name = "GDXAppTos4", purpose = "Main loop render dispatcher and bootup.") @BãßBȍőnPackageInfoʸᴰ(name = "love.distributedrebirth.gdxapp4d.tos4") -public enum GDXAppTos4 implements DefaultEnumInstanceᴶᴹˣ, ApplicationListener, SystemGdxTerminal { +public enum GDXAppTos4 implements DefaultEnumInstanceᴶᴹˣ, ApplicationListener, SystemGdxTerminal { INSTANCE; @@ -34,13 +33,10 @@ public enum GDXAppTos4 implements DefaultEnumInstanceᴶᴹˣ,Screen> screens; private final GuageCounterᴶᴹˣ selectScreenCounter; - private final BãßBȍőnCoffinOpenʸᴰ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); - public BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } private GDXAppTos4() { - BBC.BOON_INIT(this); - BȍőnJmxInit(GDXAppTos4Keyʸᴰ.JMX); - selectScreenCounter = BȍőnJmxInitGuageCounter(GDXAppTos4Keyʸᴰ.JMX, "selectScreenCounter"); + BOON_INIT(); + selectScreenCounter = BȍőnJmxInitGuageCounter("selectScreenCounter"); } public void BãßInit(List args, int viewWidth, int viewHeight, NativeFileChooser fileChooser) { @@ -95,18 +91,18 @@ public enum GDXAppTos4 implements DefaultEnumInstanceᴶᴹˣ T selectScreen(Class screenClass) { diff --git a/gdxapp4d-tos4/src/main/java/love/distributedrebirth/gdxapp4d/tos4/GDXAppTos4Keyʸᴰ.java b/gdxapp4d-tos4/src/main/java/love/distributedrebirth/gdxapp4d/tos4/GDXAppTos4Keyʸᴰ.java deleted file mode 100644 index f957412b..00000000 --- a/gdxapp4d-tos4/src/main/java/love/distributedrebirth/gdxapp4d/tos4/GDXAppTos4Keyʸᴰ.java +++ /dev/null @@ -1,12 +0,0 @@ -package love.distributedrebirth.gdxapp4d.tos4; - -import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreKeyʸᴰ; - -@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -public enum GDXAppTos4Keyʸᴰ implements BãßBȍőnCoffinStoreKeyʸᴰ { - - JMX, - - ; -} diff --git a/gdxapp4d-vrgem4/src/main/java/love/distributedrebirth/gdxapp4d/vrgem4/GDXAppVrGem4Keyʸᴰ.java b/gdxapp4d-vrgem4/src/main/java/love/distributedrebirth/gdxapp4d/vrgem4/GDXAppVrGem4Keyʸᴰ.java deleted file mode 100644 index 2d6f2da5..00000000 --- a/gdxapp4d-vrgem4/src/main/java/love/distributedrebirth/gdxapp4d/vrgem4/GDXAppVrGem4Keyʸᴰ.java +++ /dev/null @@ -1,12 +0,0 @@ -package love.distributedrebirth.gdxapp4d.vrgem4; - -import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; -import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinStoreKeyʸᴰ; - -@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -public enum GDXAppVrGem4Keyʸᴰ implements BãßBȍőnCoffinStoreKeyʸᴰ { - - JMX, - - ; -}