From 695e28daaea86788bb7c4c324aa2797376f65dba Mon Sep 17 00:00:00 2001 From: Willem Date: Wed, 26 Oct 2022 02:05:31 +0200 Subject: [PATCH] maybe only use numbers --- .../numberxd/AbstractGroßGetậlŌṁ1ⁿᴰ.java | 6 ++-- .../numberxd/AbstractGroßGetậlŌṁ6ˢᴰ.java | 6 ++-- .../numberxd/GroßGetậl1ⁿᴰ.java | 6 ++-- .../numberxd/GroßGetậl6ˢᴰ.java | 6 ++-- .../numberxd/base2t/Base2PartsFactory.java | 8 ++--- ...rtPenta.java => T015PartPentadecimal.java} | 6 ++-- ...6PartHex.java => T016PartHexadecimal.java} | 6 ++-- .../numberxd/base2t/type/V144Tocta.java | 6 ++-- .../numberxd/unicode/BaseGlyphSet.java | 8 ++--- .../numberxd/base2t/part/T016PartHexTest.java | 35 ------------------- .../base2t/part/T016PartHexadecimalTest.java | 35 +++++++++++++++++++ 11 files changed, 64 insertions(+), 64 deletions(-) rename gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/{T015PartPenta.java => T015PartPentadecimal.java} (85%) rename gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/{T016PartHex.java => T016PartHexadecimal.java} (87%) delete mode 100644 gdxapp4d-lib-numberxd/src/test/java/love/distributedrebirth/numberxd/base2t/part/T016PartHexTest.java create mode 100644 gdxapp4d-lib-numberxd/src/test/java/love/distributedrebirth/numberxd/base2t/part/T016PartHexadecimalTest.java 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 9ae24a80..ae3f34a7 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 @@ -2,7 +2,7 @@ package love.distributedrebirth.numberxd; import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注; import love.distributedrebirth.numberxd.base2t.BaseIteratorOctal; -import love.distributedrebirth.numberxd.base2t.part.T016PartHex; +import love.distributedrebirth.numberxd.base2t.part.T016PartHexadecimal; import love.distributedrebirth.numberxd.base2t.type.V009Tyte; import love.distributedrebirth.numberxd.base2t.type.V144Tocta; @@ -34,7 +34,7 @@ abstract public class AbstractGroßGetậlŌṁ1ⁿᴰ { +public enum T015PartPentadecimal implements TerminatorPartᶦᶦ { // TODO: replace with global unique one char china key value. @@ -29,9 +29,9 @@ public enum T015PartPenta implements TerminatorPartᶦᶦ { PART_15 ("˦˩","龍馬","dragon_horse"), ; - public final static T015PartPenta STATIC = T015PartPenta.PART_1; + public final static T015PartPentadecimal STATIC = T015PartPentadecimal.PART_1; - private T015PartPenta(String dialTone, String chinaKey, String chinaValue) { + private T015PartPentadecimal(String dialTone, String chinaKey, String chinaValue) { TerminatorPartᶦᶦ.Ꝑŕḯṿª₮ḕ.יהוהʸᴰ(this, dialTone, enumPart -> { enumPart.PUT_OBJ(TerminatorBullet.CHINA_KEY, chinaKey); enumPart.PUT_OBJ(TerminatorBullet.CHINA_VALUE, chinaValue); diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T016PartHex.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T016PartHexadecimal.java similarity index 87% rename from gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T016PartHex.java rename to gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T016PartHexadecimal.java index 6f76e055..1ddcec91 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T016PartHex.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/part/T016PartHexadecimal.java @@ -10,7 +10,7 @@ import love.distributedrebirth.numberxd.base2t.part.ii.TerminatorPartᶦᶦ; @BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnDuytsFlüstern注(purpose = "The distribution by 16 (elements).") @TerminatorPartAlt1注(name = "Hexadecimal", website = "https://en.wikipedia.org/wiki/Hexadecimal") -public enum T016PartHex implements TerminatorPartAlt1ᶦᶦ { +public enum T016PartHexadecimal implements TerminatorPartAlt1ᶦᶦ { PART_1 ("˥","氫","hydrogen", "0"), PART_2 ("˦","氦","helium", "1"), @@ -30,9 +30,9 @@ public enum T016PartHex implements TerminatorPartAlt1ᶦᶦ { PART_16("꜑","硫","sulfur", "F"), ; - public final static T016PartHex STATIC = T016PartHex.PART_1; + public final static T016PartHexadecimal STATIC = T016PartHexadecimal.PART_1; - private T016PartHex(String dialTone, String chinaKey, String chinaValue, String alt1Value) { + private T016PartHexadecimal(String dialTone, String chinaKey, String chinaValue, String alt1Value) { TerminatorPartᶦᶦ.Ꝑŕḯṿª₮ḕ.יהוהʸᴰ(this, dialTone, enumPart -> { enumPart.PUT_OBJ(TerminatorBullet.CHINA_KEY, chinaKey); enumPart.PUT_OBJ(TerminatorBullet.CHINA_VALUE, chinaValue); 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 d537065c..cedcaa95 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 @@ -10,7 +10,7 @@ import love.distributedrebirth.numberxd.base2t.part.T002PartBinary; import love.distributedrebirth.numberxd.base2t.part.T003PartTrit; import love.distributedrebirth.numberxd.base2t.part.T004PartQuad; import love.distributedrebirth.numberxd.base2t.part.T008PartOctal; -import love.distributedrebirth.numberxd.base2t.part.T016PartHex; +import love.distributedrebirth.numberxd.base2t.part.T016PartHexadecimal; /** * Holds an 144 bit value. @@ -46,14 +46,14 @@ public final class V144Tocta implements BaseNumberTyte { values[part.ordinal()] = value; } - public V009Tyte getTytePart(T016PartHex part) { + public V009Tyte getTytePart(T016PartHexadecimal part) { return getValue(part.splitPartBinary(T004PartQuad.PART_1)) .getValue(part.splitPartBinary(T004PartQuad.PART_2)) .getValue(part.splitPartBinary(T004PartQuad.PART_3)) .getValue(part.splitPartBinary(T004PartQuad.PART_4)); } - public void setTytePart(T016PartHex part, V009Tyte value) { + public void setTytePart(T016PartHexadecimal part, V009Tyte value) { getValue(part.splitPartBinary(T004PartQuad.PART_1)) .getValue(part.splitPartBinary(T004PartQuad.PART_2)) .getValue(part.splitPartBinary(T004PartQuad.PART_3)) 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 c3da36c6..09756498 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 @@ -15,7 +15,7 @@ import love.distributedrebirth.bassboon.yd.abacus.zombie.BãßBȍőnAbacusZombie import love.distributedrebirth.bassboon.yd.abacus.zombie.BãßBȍőnAbacusZombie響ᴼᶠ; import love.distributedrebirth.bassboon.yd.jmx.CounterGuageᴶᴹˣ; import love.distributedrebirth.numberxd.base2t.part.T010PartDecimal; -import love.distributedrebirth.numberxd.base2t.part.T016PartHex; +import love.distributedrebirth.numberxd.base2t.part.T016PartHexadecimal; @BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnDuytsFlüstern注(purpose = "The number base glyph scripts.") @@ -25,7 +25,7 @@ public enum BaseGlyphSet implements BãßBȍőnAbacusSetMBeanʸᴰ LATIN_BASIC( new BaseGlyphSetNumber(v -> T010PartDecimal.STATIC.teŀráàmVoorElk(x -> v.add(Integer.toString(x.rȧñkTelNul())))), - new BaseGlyphSetNumber(v -> T016PartHex.STATIC.teŀráàmVoorElk(x -> v.add(x.rȧñkAlt1Waarde()))), + new BaseGlyphSetNumber(v -> T016PartHexadecimal.STATIC.teŀráàmVoorElk(x -> v.add(x.rȧñkAlt1Waarde()))), 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 -> T010PartDecimal.STATIC.teŀráàmVoorElk(x -> v.add(x.rȧñkChinaWaarde()))).withSeperator(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_SPACE), @@ -57,7 +57,7 @@ public enum BaseGlyphSet implements BãßBȍőnAbacusSetMBeanʸᴰ TONE_SCRIPT( new BaseGlyphSetNumber(v -> T010PartDecimal.STATIC.teŀráàmVoorElk(x -> v.add(x.rȧñkRingToon()))), - new BaseGlyphSetNumber(v -> T016PartHex.STATIC.teŀráàmVoorElk(x -> v.add(x.rȧñkRingToon()))), + new BaseGlyphSetNumber(v -> T016PartHexadecimal.STATIC.teŀráàmVoorElk(x -> v.add(x.rȧñkRingToon()))), new BaseGlyphSetNumber("꜊꜈","꜊꜉","꜊꜋","꜊꜌","꜊꜍","꜊꜎","꜊꜏","꜊꜐","꜊꜑","˧˥","˧˦","˧˨","˧˩","˧꜒","˧꜓","˧꜔","˧꜕","˧꜖","꜏˥","꜏˦","꜏˧","꜏˨","꜏˩","꜏꜍","꜏꜎","꜏꜐","꜏꜑")), DIPAVALI_LRPATH_TOPHEX( new BaseGlyphSetNumber(v -> T010PartDecimal.STATIC.teŀráàmVoorElk(x -> v.add(x.rȧñkAlt1Waarde()))), @@ -267,7 +267,7 @@ public enum BaseGlyphSet implements BãßBȍőnAbacusSetMBeanʸᴰ } public String BȍőnPrintNumber16(BigInteger number) { - String amount16 = number.toString(T016PartHex.STATIC.teŀráàmGroote()); + String amount16 = number.toString(T016PartHexadecimal.STATIC.teŀráàmGroote()); StringBuilder buf16 = new StringBuilder(); int c2 = 0; for (char c:amount16.toCharArray()) { diff --git a/gdxapp4d-lib-numberxd/src/test/java/love/distributedrebirth/numberxd/base2t/part/T016PartHexTest.java b/gdxapp4d-lib-numberxd/src/test/java/love/distributedrebirth/numberxd/base2t/part/T016PartHexTest.java deleted file mode 100644 index cb064bb3..00000000 --- a/gdxapp4d-lib-numberxd/src/test/java/love/distributedrebirth/numberxd/base2t/part/T016PartHexTest.java +++ /dev/null @@ -1,35 +0,0 @@ -package love.distributedrebirth.numberxd.base2t.part; - -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注; - -@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -public class T016PartHexTest { - - @Test - public void testBasePart() { - for (T016PartHex value:T016PartHex.values()) { - Assertions.assertNotNull(value.rȧñkRingToon()); - Assertions.assertNotNull(value.rȧñkChinaSleutel()); - Assertions.assertNotNull(value.rȧñkChinaWaarde()); - } - } - - @Test - public void testToneMap() { - Assertions.assertEquals(T016PartHex.PART_1, T016PartHex.PART_1.teŀráàmWaardeVanRingToon("˥")); - Assertions.assertEquals(T016PartHex.PART_2, T016PartHex.PART_1.teŀráàmWaardeVanRingToon("˦")); - Assertions.assertEquals(T016PartHex.PART_15, T016PartHex.PART_1.teŀráàmWaardeVanRingToon("꜐")); - Assertions.assertEquals(T016PartHex.PART_16, T016PartHex.PART_1.teŀráàmWaardeVanRingToon("꜑")); - } - - @Test - public void testChinaMap() { - Assertions.assertEquals(T016PartHex.PART_1, T016PartHex.PART_1.ráàmWaardeVanChinaSleutel("氫")); - Assertions.assertEquals(T016PartHex.PART_2, T016PartHex.PART_1.ráàmWaardeVanChinaSleutel("氦")); - Assertions.assertEquals(T016PartHex.PART_15, T016PartHex.PART_1.ráàmWaardeVanChinaSleutel("磷")); - Assertions.assertEquals(T016PartHex.PART_16, T016PartHex.PART_1.ráàmWaardeVanChinaSleutel("硫")); - } -} diff --git a/gdxapp4d-lib-numberxd/src/test/java/love/distributedrebirth/numberxd/base2t/part/T016PartHexadecimalTest.java b/gdxapp4d-lib-numberxd/src/test/java/love/distributedrebirth/numberxd/base2t/part/T016PartHexadecimalTest.java new file mode 100644 index 00000000..0404cf49 --- /dev/null +++ b/gdxapp4d-lib-numberxd/src/test/java/love/distributedrebirth/numberxd/base2t/part/T016PartHexadecimalTest.java @@ -0,0 +1,35 @@ +package love.distributedrebirth.numberxd.base2t.part; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注; + +@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") +public class T016PartHexadecimalTest { + + @Test + public void testBasePart() { + for (T016PartHexadecimal value:T016PartHexadecimal.values()) { + Assertions.assertNotNull(value.rȧñkRingToon()); + Assertions.assertNotNull(value.rȧñkChinaSleutel()); + Assertions.assertNotNull(value.rȧñkChinaWaarde()); + } + } + + @Test + public void testToneMap() { + Assertions.assertEquals(T016PartHexadecimal.PART_1, T016PartHexadecimal.PART_1.teŀráàmWaardeVanRingToon("˥")); + Assertions.assertEquals(T016PartHexadecimal.PART_2, T016PartHexadecimal.PART_1.teŀráàmWaardeVanRingToon("˦")); + Assertions.assertEquals(T016PartHexadecimal.PART_15, T016PartHexadecimal.PART_1.teŀráàmWaardeVanRingToon("꜐")); + Assertions.assertEquals(T016PartHexadecimal.PART_16, T016PartHexadecimal.PART_1.teŀráàmWaardeVanRingToon("꜑")); + } + + @Test + public void testChinaMap() { + Assertions.assertEquals(T016PartHexadecimal.PART_1, T016PartHexadecimal.PART_1.ráàmWaardeVanChinaSleutel("氫")); + Assertions.assertEquals(T016PartHexadecimal.PART_2, T016PartHexadecimal.PART_1.ráàmWaardeVanChinaSleutel("氦")); + Assertions.assertEquals(T016PartHexadecimal.PART_15, T016PartHexadecimal.PART_1.ráàmWaardeVanChinaSleutel("磷")); + Assertions.assertEquals(T016PartHexadecimal.PART_16, T016PartHexadecimal.PART_1.ráàmWaardeVanChinaSleutel("硫")); + } +}