Removed V003Timble from object tree

This commit is contained in:
Willem 2022-02-05 18:44:41 +01:00
parent 0a6972d927
commit 4cdb373b9e
5 changed files with 32 additions and 75 deletions

View file

@ -24,9 +24,9 @@ public class Gê̄ldGetậlÅtHebrew {
} }
public Gê̄ldGetậlÅtHebrew(V009Tyte tyte) { public Gê̄ldGetậlÅtHebrew(V009Tyte tyte) {
int value0 = tyte.getValue(T03PartTrit.PART_1).getValue().ordinalOf(T08PartOctal.PART_1); int value0 = tyte.getValue(T03PartTrit.PART_1).ordinalOf(T08PartOctal.PART_1);
int value1 = tyte.getValue(T03PartTrit.PART_2).getValue().ordinalOf(T08PartOctal.PART_2); int value1 = tyte.getValue(T03PartTrit.PART_2).ordinalOf(T08PartOctal.PART_2);
int value2 = tyte.getValue(T03PartTrit.PART_3).getValue().ordinalOf(T08PartOctal.PART_3); int value2 = tyte.getValue(T03PartTrit.PART_3).ordinalOf(T08PartOctal.PART_3);
int combinedValue = value0 + value1 + value2; int combinedValue = value0 + value1 + value2;
letter = Gê̄ldGetậlÅtHebrewLetter.indexOf(combinedValue); letter = Gê̄ldGetậlÅtHebrewLetter.indexOf(combinedValue);
vowel = Gê̄ldGetậlÅtHebrewVowel.indexOf(combinedValue >> Gê̄ldGetậlÅtHebrewLetter.SHIFT_5); vowel = Gê̄ldGetậlÅtHebrewVowel.indexOf(combinedValue >> Gê̄ldGetậlÅtHebrewLetter.SHIFT_5);

View file

@ -1,48 +0,0 @@
package love.distributedrebirth.numberxd.base2t.type;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.numberxd.base2t.BaseAppenderOctal;
import love.distributedrebirth.numberxd.base2t.BaseIteratorOctal;
import love.distributedrebirth.numberxd.base2t.BaseNumber;
import love.distributedrebirth.numberxd.base2t.part.T08PartOctal;
/**
* Holds an 3 bit value.
*/
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public final class V003Timble implements BaseNumber<V003Timble> {
public static int BIT_COUNT = T08PartOctal.BIT_COUNT;
private final T08PartOctal value;
public V003Timble() {
this(T08PartOctal.PART_1);
}
public V003Timble(BaseIteratorOctal values) {
this(values.next());
}
public V003Timble(T08PartOctal value) {
this.value = value;
}
public T08PartOctal getValue() {
return value;
}
@Override
public int getBitCount() {
return BIT_COUNT;
}
@Override
public V003Timble toClone() {
return new V003Timble(getValue());
}
@Override
public void fillOctalsByClone(BaseAppenderOctal appender) {
appender.add(getValue());
}
}

View file

@ -5,6 +5,7 @@ import love.distributedrebirth.numberxd.base2t.BaseAppenderOctal;
import love.distributedrebirth.numberxd.base2t.BaseIteratorOctal; import love.distributedrebirth.numberxd.base2t.BaseIteratorOctal;
import love.distributedrebirth.numberxd.base2t.BaseNumber; import love.distributedrebirth.numberxd.base2t.BaseNumber;
import love.distributedrebirth.numberxd.base2t.part.T02PartBinary; import love.distributedrebirth.numberxd.base2t.part.T02PartBinary;
import love.distributedrebirth.numberxd.base2t.part.T08PartOctal;
/** /**
* Holds an 6 bit value. * Holds an 6 bit value.
@ -12,27 +13,27 @@ import love.distributedrebirth.numberxd.base2t.part.T02PartBinary;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public final class V006Tixte implements BaseNumber<V006Tixte> { public final class V006Tixte implements BaseNumber<V006Tixte> {
public static int BIT_COUNT = V003Timble.BIT_COUNT * T02PartBinary.LENGTH(); public static int BIT_COUNT = T08PartOctal.BIT_COUNT * T02PartBinary.LENGTH();
private V003Timble[] values = new V003Timble[T02PartBinary.LENGTH()]; private final T08PartOctal[] values = new T08PartOctal[T02PartBinary.LENGTH()];
public V006Tixte() { public V006Tixte() {
this(new V003Timble(), new V003Timble()); this(T08PartOctal.PART_1, T08PartOctal.PART_1);
} }
public V006Tixte(BaseIteratorOctal values) { public V006Tixte(BaseIteratorOctal values) {
this(new V003Timble(values), new V003Timble(values)); this(values.next(), values.next());
} }
private V006Tixte(V003Timble valueHigh, V003Timble valueLow) { private V006Tixte(T08PartOctal valueHigh, T08PartOctal valueLow) {
setValue(T02PartBinary.PART_1, valueHigh); values[0] = valueHigh;
setValue(T02PartBinary.PART_2, valueLow); values[1] = valueLow;
} }
public V003Timble getValue(T02PartBinary part) { public T08PartOctal getValue(T02PartBinary part) {
return values[part.ordinal()]; return values[part.ordinal()];
} }
public void setValue(T02PartBinary part, V003Timble value) { public void setValue(T02PartBinary part, T08PartOctal value) {
values[part.ordinal()] = value; values[part.ordinal()] = value;
} }
@ -48,6 +49,7 @@ public final class V006Tixte implements BaseNumber<V006Tixte> {
@Override @Override
public void fillOctalsByClone(BaseAppenderOctal appender) { public void fillOctalsByClone(BaseAppenderOctal appender) {
T02PartBinary.PART_1.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); appender.add(values[0]);
appender.add(values[1]);
} }
} }

View file

@ -14,31 +14,31 @@ import love.distributedrebirth.numberxd.base2t.part.T08PartOctal;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public final class V009Tyte implements BaseNumberTyte<V009Tyte> { public final class V009Tyte implements BaseNumberTyte<V009Tyte> {
public static int BIT_COUNT = V003Timble.BIT_COUNT * T03PartTrit.LENGTH(); public static int BIT_COUNT = T08PartOctal.BIT_COUNT * T03PartTrit.LENGTH();
private final V003Timble[] values = new V003Timble[T03PartTrit.LENGTH()]; private final T08PartOctal[] values = new T08PartOctal[T03PartTrit.LENGTH()];
public V009Tyte() { public V009Tyte() {
this(new V003Timble(), new V003Timble(), new V003Timble()); this(T08PartOctal.PART_1, T08PartOctal.PART_1, T08PartOctal.PART_1);
} }
public V009Tyte(BaseIteratorOctal values) { public V009Tyte(BaseIteratorOctal values) {
this(new V003Timble(values), new V003Timble(values), new V003Timble(values)); this(values.next(), values.next(), values.next());
} }
public V009Tyte(T08PartOctal valueHigh, T08PartOctal valueMedium, T08PartOctal valueLow) { public V009Tyte(T08PartOctal valueHigh, T08PartOctal valueMedium, T08PartOctal valueLow) {
this(new V003Timble(valueHigh), new V003Timble(valueMedium), new V003Timble(valueLow)); values[0] = valueHigh;
values[1] = valueMedium;
values[2] = valueLow;
} }
private V009Tyte(V003Timble valueHigh, V003Timble valueMedium, V003Timble valueLow) { public T08PartOctal getValue(T03PartTrit part) {
values[T03PartTrit.PART_1.ordinal()] = valueHigh;
values[T03PartTrit.PART_2.ordinal()] = valueMedium;
values[T03PartTrit.PART_3.ordinal()] = valueLow;
}
public V003Timble getValue(T03PartTrit part) {
return values[part.ordinal()]; return values[part.ordinal()];
} }
public void setValue(T03PartTrit part, T08PartOctal value) {
values[part.ordinal()] = value;
}
@Override @Override
public int getBitCount() { public int getBitCount() {
return BIT_COUNT; return BIT_COUNT;
@ -51,7 +51,9 @@ public final class V009Tyte implements BaseNumberTyte<V009Tyte> {
@Override @Override
public void fillOctalsByClone(BaseAppenderOctal appender) { public void fillOctalsByClone(BaseAppenderOctal appender) {
T03PartTrit.PART_1.BãßVoorElk(v -> getValue(v).fillOctalsByClone(appender)); appender.add(values[0]);
appender.add(values[1]);
appender.add(values[2]);
} }
@Override @Override

View file

@ -8,6 +8,7 @@ import love.distributedrebirth.numberxd.base2t.BaseIteratorTyte;
import love.distributedrebirth.numberxd.base2t.BaseNumberTyte; import love.distributedrebirth.numberxd.base2t.BaseNumberTyte;
import love.distributedrebirth.numberxd.base2t.part.T02PartBinary; import love.distributedrebirth.numberxd.base2t.part.T02PartBinary;
import love.distributedrebirth.numberxd.base2t.part.T06PartSeximal; import love.distributedrebirth.numberxd.base2t.part.T06PartSeximal;
import love.distributedrebirth.numberxd.base2t.part.T08PartOctal;
/** /**
* Holds an 18 bit value. * Holds an 18 bit value.
@ -43,7 +44,7 @@ public final class V018Tord implements BaseNumberTyte<V018Tord> {
values[part.ordinal()] = value; values[part.ordinal()] = value;
} }
public V003Timble getTimblePart(T06PartSeximal part) { public T08PartOctal getTimblePart(T06PartSeximal part) {
return getValue(part.splitPartBinary()).getValue(part.splitPartTrit()); return getValue(part.splitPartBinary()).getValue(part.splitPartTrit());
} }