Missed part prefix

This commit is contained in:
Willem Cazander 2022-02-02 00:34:10 +01:00
parent c9d8459bbe
commit f29b1d76a5
5 changed files with 23 additions and 23 deletions

View file

@ -39,7 +39,7 @@ public final class BasePartFactory {
case 20: case 20:
return T20PartScore.values(); return T20PartScore.values();
case 60: case 60:
return T60Sexagesimal.values(); return T60PartSexagesimal.values();
default: default:
throw new IllegalArgumentException("Unsupported base: "+base); throw new IllegalArgumentException("Unsupported base: "+base);
} }

View file

@ -11,7 +11,7 @@ import love.distributedrebirth.numberxd.base2t.bone.BassBoneStoreKey;
* @author willemtsade ©Δ 仙上主天 * @author willemtsade ©Δ 仙上主天
*/ */
@BassBoneName("T60Sexagesimal") @BassBoneName("T60Sexagesimal")
public enum T60Sexagesimal implements BassBone<T60Sexagesimal> { public enum T60PartSexagesimal implements BassBone<T60PartSexagesimal> {
PART_1 ("˧˩˥","ια","","cow"), PART_1 ("˧˩˥","ια","","cow"),
PART_2 ("˧˥˦","ιβ","","chicken"), PART_2 ("˧˥˦","ιβ","","chicken"),
@ -82,7 +82,7 @@ public enum T60Sexagesimal implements BassBone<T60Sexagesimal> {
public static int LENGTH() { return values().length; }; public static int LENGTH() { return values().length; };
private final BassBoneCoffin bbc = BassBoneCoffin.newInstance(); private final BassBoneCoffin bbc = BassBoneCoffin.newInstance();
private T60Sexagesimal(String idTone, String idLetter, String chinaKey, String chinaValue) { private T60PartSexagesimal(String idTone, String idLetter, String chinaKey, String chinaValue) {
GET_BBC().PUT_INIT(BassBoneStoreKey.ID_TONE, idTone); GET_BBC().PUT_INIT(BassBoneStoreKey.ID_TONE, idTone);
GET_BBC().PUT_INIT(BassBoneStoreKey.ID_LETTER, idLetter); GET_BBC().PUT_INIT(BassBoneStoreKey.ID_LETTER, idLetter);
GET_BBC().PUT_INIT(BassBoneStoreKey.CHINA_KEY, chinaKey); GET_BBC().PUT_INIT(BassBoneStoreKey.CHINA_KEY, chinaKey);

View file

@ -7,8 +7,8 @@ package love.distributedrebirth.numberxd.base2t;
*/ */
public class V654Triz implements BaseNumberTyte<V654Triz> { public class V654Triz implements BaseNumberTyte<V654Triz> {
public static int BIT_COUNT = V01BTemvig.BIT_COUNT * T60Sexagesimal.LENGTH(); public static int BIT_COUNT = V01BTemvig.BIT_COUNT * T60PartSexagesimal.LENGTH();
private V01BTemvig[] values = new V01BTemvig[T60Sexagesimal.LENGTH()]; private V01BTemvig[] values = new V01BTemvig[T60PartSexagesimal.LENGTH()];
public V654Triz() { public V654Triz() {
for (int i=0;i<this.values.length;i++) { for (int i=0;i<this.values.length;i++) {
@ -22,11 +22,11 @@ public class V654Triz implements BaseNumberTyte<V654Triz> {
} }
} }
public V01BTemvig getValue(T60Sexagesimal part) { public V01BTemvig getValue(T60PartSexagesimal part) {
return values[part.ordinal()]; return values[part.ordinal()];
} }
public void setValue(T60Sexagesimal part, V01BTemvig value) { public void setValue(T60PartSexagesimal part, V01BTemvig value) {
values[part.ordinal()] = value; values[part.ordinal()] = value;
} }
@ -42,11 +42,11 @@ public class V654Triz implements BaseNumberTyte<V654Triz> {
@Override @Override
public void fillOctalsByClone(T08PartOctalBaseAppender appender) { public void fillOctalsByClone(T08PartOctalBaseAppender appender) {
T60Sexagesimal.PART_1.staticVoorElk(v -> getValue(v).fillOctalsByClone(appender)); T60PartSexagesimal.PART_1.staticVoorElk(v -> getValue(v).fillOctalsByClone(appender));
} }
@Override @Override
public void fillTytesByReference(V009TyteBaseAppender appender) { public void fillTytesByReference(V009TyteBaseAppender appender) {
T60Sexagesimal.PART_1.staticVoorElk(v -> getValue(v).fillTytesByReference(appender)); T60PartSexagesimal.PART_1.staticVoorElk(v -> getValue(v).fillTytesByReference(appender));
} }
} }

View file

@ -7,8 +7,8 @@ package love.distributedrebirth.numberxd.base2t;
*/ */
public class V9D8Traz implements BaseNumber<V9D8Traz> { public class V9D8Traz implements BaseNumber<V9D8Traz> {
public static int BIT_COUNT = V02ATraw.BIT_COUNT * T60Sexagesimal.LENGTH(); public static int BIT_COUNT = V02ATraw.BIT_COUNT * T60PartSexagesimal.LENGTH();
private V02ATraw[] values = new V02ATraw[T60Sexagesimal.LENGTH()]; private V02ATraw[] values = new V02ATraw[T60PartSexagesimal.LENGTH()];
public V9D8Traz() { public V9D8Traz() {
for (int i=0;i<values.length;i++) { for (int i=0;i<values.length;i++) {
@ -22,11 +22,11 @@ public class V9D8Traz implements BaseNumber<V9D8Traz> {
} }
} }
public V02ATraw getValue(T60Sexagesimal part) { public V02ATraw getValue(T60PartSexagesimal part) {
return values[part.ordinal()]; return values[part.ordinal()];
} }
public void setValue(T60Sexagesimal part, V02ATraw value) { public void setValue(T60PartSexagesimal part, V02ATraw value) {
values[part.ordinal()] = value; values[part.ordinal()] = value;
} }
@ -42,6 +42,6 @@ public class V9D8Traz implements BaseNumber<V9D8Traz> {
@Override @Override
public void fillOctalsByClone(T08PartOctalBaseAppender appender) { public void fillOctalsByClone(T08PartOctalBaseAppender appender) {
T60Sexagesimal.PART_1.staticVoorElk(v -> getValue(v).fillOctalsByClone(appender)); T60PartSexagesimal.PART_1.staticVoorElk(v -> getValue(v).fillOctalsByClone(appender));
} }
} }

View file

@ -12,7 +12,7 @@ public class T60SexagesimalTest {
@Test @Test
public void testBasePart() { public void testBasePart() {
for (T60Sexagesimal value:T60Sexagesimal.values()) { for (T60PartSexagesimal value:T60PartSexagesimal.values()) {
Assertions.assertNotNull(value.getIdentifierTone()); Assertions.assertNotNull(value.getIdentifierTone());
Assertions.assertNotNull(value.getIdentifierLetter()); Assertions.assertNotNull(value.getIdentifierLetter());
Assertions.assertNotNull(value.getChinaKey()); Assertions.assertNotNull(value.getChinaKey());
@ -22,17 +22,17 @@ public class T60SexagesimalTest {
@Test @Test
public void testToneMap() { public void testToneMap() {
Assertions.assertEquals(T60Sexagesimal.PART_1, T60Sexagesimal.PART_1.staticValueOfTone("˧˩˥")); Assertions.assertEquals(T60PartSexagesimal.PART_1, T60PartSexagesimal.PART_1.staticValueOfTone("˧˩˥"));
Assertions.assertEquals(T60Sexagesimal.PART_2, T60Sexagesimal.PART_1.staticValueOfTone("˧˥˦")); Assertions.assertEquals(T60PartSexagesimal.PART_2, T60PartSexagesimal.PART_1.staticValueOfTone("˧˥˦"));
Assertions.assertEquals(T60Sexagesimal.PART_59, T60Sexagesimal.PART_1.staticValueOfTone("꜍꜍꜏")); Assertions.assertEquals(T60PartSexagesimal.PART_59, T60PartSexagesimal.PART_1.staticValueOfTone("꜍꜍꜏"));
Assertions.assertEquals(T60Sexagesimal.PART_60, T60Sexagesimal.PART_1.staticValueOfTone("꜑꜑꜏")); Assertions.assertEquals(T60PartSexagesimal.PART_60, T60PartSexagesimal.PART_1.staticValueOfTone("꜑꜑꜏"));
} }
@Test @Test
public void testChinaMap() { public void testChinaMap() {
Assertions.assertEquals(T60Sexagesimal.PART_1, T60Sexagesimal.PART_1.staticValueOfChina("")); Assertions.assertEquals(T60PartSexagesimal.PART_1, T60PartSexagesimal.PART_1.staticValueOfChina(""));
Assertions.assertEquals(T60Sexagesimal.PART_2, T60Sexagesimal.PART_1.staticValueOfChina("")); Assertions.assertEquals(T60PartSexagesimal.PART_2, T60PartSexagesimal.PART_1.staticValueOfChina(""));
Assertions.assertEquals(T60Sexagesimal.PART_59, T60Sexagesimal.PART_1.staticValueOfChina("")); Assertions.assertEquals(T60PartSexagesimal.PART_59, T60PartSexagesimal.PART_1.staticValueOfChina(""));
Assertions.assertEquals(T60Sexagesimal.PART_60, T60Sexagesimal.PART_1.staticValueOfChina("")); Assertions.assertEquals(T60PartSexagesimal.PART_60, T60PartSexagesimal.PART_1.staticValueOfChina(""));
} }
} }