Renamed T020

This commit is contained in:
Willem Cazander 2022-10-26 01:53:16 +02:00
parent e1e929d2f8
commit 2abab0e02a
5 changed files with 59 additions and 59 deletions

View file

@ -25,7 +25,7 @@ import love.distributedrebirth.numberxd.base2t.part.T017PartHeptadecimal;
import love.distributedrebirth.numberxd.base2t.part.T018PartOctodecimal;
import love.distributedrebirth.numberxd.base2t.part.T192PartCentebrailleimal;
import love.distributedrebirth.numberxd.base2t.part.ii.TerminatorPartᶦᶦ;
import love.distributedrebirth.numberxd.base2t.part.T020PartScore;
import love.distributedrebirth.numberxd.base2t.part.T020PartVigesimal;
import love.distributedrebirth.numberxd.base2t.part.T021PartUnvigesimal;
import love.distributedrebirth.numberxd.base2t.part.T025PartPentavigesimal;
import love.distributedrebirth.numberxd.base2t.part.T060PartSexagesimal;
@ -143,7 +143,7 @@ public enum Base2PartsFactory implements BãßBȍőnAbacusInstanceMBeanʸᴰ<Bas
return T018PartOctodecimal.values();
case 20:
baseT20Reads.increment();
return T020PartScore.values();
return T020PartVigesimal.values();
case 21:
// baseT20Reads.increment();
return T021PartUnvigesimal.values();

View file

@ -21,7 +21,7 @@ import love.distributedrebirth.numberxd.base2t.part.ii.TerminatorPartᶦᶦ;
@TerminatorPartAlt2注(name = "Vigesimal", website = "https://en.wikipedia.org/wiki/Vigesimal#Places")
@TerminatorPartAlt3注(name = "Vigesimal Alternative", website = "https://en.wikipedia.org/wiki/Vigesimal#Places")
@TerminatorPartAlt4注(name = "Open Location Code", website = "https://en.wikipedia.org/wiki/Open_Location_Code")
public enum T020PartScore implements TerminatorPartAlt4ᶦᶦ<T020PartScore> {
public enum T020PartVigesimal implements TerminatorPartAlt4ᶦᶦ<T020PartVigesimal> {
PART_1 ("˥", "", "yotta", "Y", "0", "0", "2"),
PART_2 ("˦", "", "zetta", "Z", "1", "1", "3"),
@ -45,12 +45,12 @@ public enum T020PartScore implements TerminatorPartAlt4ᶦᶦ<T020PartScore> {
PART_20("", "", "yocto", "y", "J", "K", "X"),
;
private static final Map<String, T020PartScore> OPENLC_MAP = Collections.unmodifiableMap(
private static final Map<String, T020PartVigesimal> OPENLC_MAP = Collections.unmodifiableMap(
Arrays.asList(values()).stream().collect(Collectors.toMap(v -> v.rȧñkAlt4Waarde(), v -> v)));
public final static T020PartScore STATIC = T020PartScore.PART_1;
public final static T020PartVigesimal STATIC = T020PartVigesimal.PART_1;
private T020PartScore(String dialTone, String chinaKey, String chinaValue,
private T020PartVigesimal(String dialTone, String chinaKey, String chinaValue,
String alt1Value, String alt2Value, String alt3Value, String alt4Value) {
TerminatorPartᶦᶦ.Ꝑŕḯṿª.יהוהʸᴰ(this, dialTone, enumPart -> {
enumPart.PUT_OBJ(TerminatorBullet.CHINA_KEY, chinaKey);
@ -62,7 +62,7 @@ public enum T020PartScore implements TerminatorPartAlt4ᶦᶦ<T020PartScore> {
});
}
public T020PartScore BãßValueOfOpenLC(String openLCKey) {
public T020PartVigesimal BãßValueOfOpenLC(String openLCKey) {
return OPENLC_MAP.get(openLCKey);
}
}

View file

@ -4,7 +4,7 @@ import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
import love.distributedrebirth.numberxd.base2t.BaseAppenderOctal;
import love.distributedrebirth.numberxd.base2t.BaseIteratorOctal;
import love.distributedrebirth.numberxd.base2t.BaseNumberˣᴸ;
import love.distributedrebirth.numberxd.base2t.part.T020PartScore;
import love.distributedrebirth.numberxd.base2t.part.T020PartVigesimal;
import love.distributedrebirth.numberxd.base2t.type.V042Traw;
/**
@ -13,8 +13,8 @@ import love.distributedrebirth.numberxd.base2t.type.V042Traw;
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public class V0x000348ˣᴸ implements BaseNumberˣᴸ<V0x000348ˣᴸ> {
public static int BIT_COUNT = V042Traw.BIT_COUNT * T020PartScore.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ();
private V042Traw[] values = new V042Traw[T020PartScore.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()];
public static int BIT_COUNT = V042Traw.BIT_COUNT * T020PartVigesimal.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ();
private V042Traw[] values = new V042Traw[T020PartVigesimal.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()];
public V0x000348ˣᴸ() {
for (int i=0;i<values.length;i++) {
@ -28,11 +28,11 @@ public class V0x000348ˣᴸ implements BaseNumberˣᴸ<V0x000348ˣᴸ> {
}
}
public V042Traw getValue(T020PartScore part) {
public V042Traw getValue(T020PartVigesimal part) {
return values[part.ordinal()];
}
public void setValue(T020PartScore part, V042Traw value) {
public void setValue(T020PartVigesimal part, V042Traw value) {
values[part.ordinal()] = value;
}
@ -48,6 +48,6 @@ public class V0x000348ˣᴸ implements BaseNumberˣᴸ<V0x000348ˣᴸ> {
@Override
public void fillOctalsByClone(BaseAppenderOctal appender) {
T020PartScore.STATIC.teŀráàmVoorElk(v -> getValue(v).fillOctalsByClone(appender));
T020PartVigesimal.STATIC.teŀráàmVoorElk(v -> getValue(v).fillOctalsByClone(appender));
}
}

View file

@ -1,46 +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 T020PartScoreTest {
@Test
public void testBasePart() {
for (T020PartScore value:T020PartScore.values()) {
Assertions.assertNotNull(value.rȧñkRingToon());
Assertions.assertNotNull(value.rȧñkChinaSleutel());
Assertions.assertNotNull(value.rȧñkChinaWaarde());
Assertions.assertNotNull(value.rȧñkAlt1Waarde());
Assertions.assertNotNull(value.ráàmAlt1Naam());
Assertions.assertNotNull(value.ráàmAlt1Website());
}
}
@Test
public void testToneMap() {
Assertions.assertEquals(T020PartScore.PART_1, T020PartScore.PART_1.teŀráàmWaardeVanRingToon("˥"));
Assertions.assertEquals(T020PartScore.PART_2, T020PartScore.PART_1.teŀráàmWaardeVanRingToon("˦"));
Assertions.assertEquals(T020PartScore.PART_19, T020PartScore.PART_1.teŀráàmWaardeVanRingToon(""));
Assertions.assertEquals(T020PartScore.PART_20, T020PartScore.PART_1.teŀráàmWaardeVanRingToon(""));
}
@Test
public void testChinaMap() {
Assertions.assertEquals(T020PartScore.PART_1, T020PartScore.PART_1.ráàmWaardeVanChinaSleutel(""));
Assertions.assertEquals(T020PartScore.PART_2, T020PartScore.PART_1.ráàmWaardeVanChinaSleutel(""));
Assertions.assertEquals(T020PartScore.PART_19, T020PartScore.PART_1.ráàmWaardeVanChinaSleutel(""));
Assertions.assertEquals(T020PartScore.PART_20, T020PartScore.PART_1.ráàmWaardeVanChinaSleutel(""));
}
@Test
public void testOpenLCMap() {
Assertions.assertEquals(T020PartScore.PART_1, T020PartScore.PART_1.BãßValueOfOpenLC("2"));
Assertions.assertEquals(T020PartScore.PART_2, T020PartScore.PART_1.BãßValueOfOpenLC("3"));
Assertions.assertEquals(T020PartScore.PART_19, T020PartScore.PART_1.BãßValueOfOpenLC("W"));
Assertions.assertEquals(T020PartScore.PART_20, T020PartScore.PART_1.BãßValueOfOpenLC("X"));
}
}

View file

@ -0,0 +1,46 @@
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 T020PartVigesimalTest {
@Test
public void testBasePart() {
for (T020PartVigesimal value:T020PartVigesimal.values()) {
Assertions.assertNotNull(value.rȧñkRingToon());
Assertions.assertNotNull(value.rȧñkChinaSleutel());
Assertions.assertNotNull(value.rȧñkChinaWaarde());
Assertions.assertNotNull(value.rȧñkAlt1Waarde());
Assertions.assertNotNull(value.ráàmAlt1Naam());
Assertions.assertNotNull(value.ráàmAlt1Website());
}
}
@Test
public void testToneMap() {
Assertions.assertEquals(T020PartVigesimal.PART_1, T020PartVigesimal.PART_1.teŀráàmWaardeVanRingToon("˥"));
Assertions.assertEquals(T020PartVigesimal.PART_2, T020PartVigesimal.PART_1.teŀráàmWaardeVanRingToon("˦"));
Assertions.assertEquals(T020PartVigesimal.PART_19, T020PartVigesimal.PART_1.teŀráàmWaardeVanRingToon(""));
Assertions.assertEquals(T020PartVigesimal.PART_20, T020PartVigesimal.PART_1.teŀráàmWaardeVanRingToon(""));
}
@Test
public void testChinaMap() {
Assertions.assertEquals(T020PartVigesimal.PART_1, T020PartVigesimal.PART_1.ráàmWaardeVanChinaSleutel(""));
Assertions.assertEquals(T020PartVigesimal.PART_2, T020PartVigesimal.PART_1.ráàmWaardeVanChinaSleutel(""));
Assertions.assertEquals(T020PartVigesimal.PART_19, T020PartVigesimal.PART_1.ráàmWaardeVanChinaSleutel(""));
Assertions.assertEquals(T020PartVigesimal.PART_20, T020PartVigesimal.PART_1.ráàmWaardeVanChinaSleutel(""));
}
@Test
public void testOpenLCMap() {
Assertions.assertEquals(T020PartVigesimal.PART_1, T020PartVigesimal.PART_1.BãßValueOfOpenLC("2"));
Assertions.assertEquals(T020PartVigesimal.PART_2, T020PartVigesimal.PART_1.BãßValueOfOpenLC("3"));
Assertions.assertEquals(T020PartVigesimal.PART_19, T020PartVigesimal.PART_1.BãßValueOfOpenLC("W"));
Assertions.assertEquals(T020PartVigesimal.PART_20, T020PartVigesimal.PART_1.BãßValueOfOpenLC("X"));
}
}