Start with base getal interface

This commit is contained in:
Willem Cazander 2022-01-31 19:06:09 +01:00
parent df444f4096
commit 198e7eb606
8 changed files with 100 additions and 88 deletions

View file

@ -0,0 +1,13 @@
package love.distributedrebirth.numberxd;
import love.distributedrebirth.numberxd.base2t.BaseNumberTyte;
/**
*
*
* @author willemtsade ©Δ 仙上主天
*/
public interface BaseGetậl<V extends BaseNumberTyte<V>> extends BaseNumberTyte<V> {
}

View file

@ -3,7 +3,6 @@ package love.distributedrebirth.numberxd;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import love.distributedrebirth.numberxd.base2t.BaseNumberTyte;
import love.distributedrebirth.numberxd.base2t.T08PartOctalBaseAppender; import love.distributedrebirth.numberxd.base2t.T08PartOctalBaseAppender;
import love.distributedrebirth.numberxd.base2t.T08PartOctalBaseIterator; import love.distributedrebirth.numberxd.base2t.T08PartOctalBaseIterator;
import love.distributedrebirth.numberxd.base2t.V009Tyte; import love.distributedrebirth.numberxd.base2t.V009Tyte;
@ -16,7 +15,7 @@ import love.distributedrebirth.numberxd.base2t.V090Tocta;
* *
* @author willemtsade ©Δ 仙上主天 * @author willemtsade ©Δ 仙上主天
*/ */
public class GroßGetậl1ⁿᴰ implements BaseNumberTyte<GroßGetậl1ⁿᴰ> { public class GroßGetậl1ⁿᴰ implements BaseGetậl<GroßGetậl1ⁿᴰ> {
public static int NUMERATOR_SIZE = 7; public static int NUMERATOR_SIZE = 7;
public static int DENOMINATOR_SIZE = 9; public static int DENOMINATOR_SIZE = 9;

View file

@ -12,24 +12,24 @@ import love.distributedrebirth.numberxd.base2t.V024Teger;
*/ */
public class Gê̄ldGetậl { public class Gê̄ldGetậl {
private final Gê̄ldGetậlAtHebrew nummerAlphabet; private final Gê̄ldGetậlÅtHebrew nummerAlphabet;
private final Gê̄ldGetậlAtHebrew nummerDeelA; private final Gê̄ldGetậlÅtHebrew nummerDeelA;
private final Gê̄ldGetậlAtHebrew nummerDeelB; private final Gê̄ldGetậlÅtHebrew nummerDeelB;
private final Gê̄ldGetậlAtHebrew nummerDeelC; private final Gê̄ldGetậlÅtHebrew nummerDeelC;
private final double totalDecimalValue; private final double totalDecimalValue;
private static final Character LEFT_TO_RIGHT_MARK = 0x200E; private static final Character LEFT_TO_RIGHT_MARK = 0x200E;
private static final Character RIGHT_TO_LEFT_MARK = 0x200F; private static final Character RIGHT_TO_LEFT_MARK = 0x200F;
public Gê̄ldGetậl(V024Teger teger) { public Gê̄ldGetậl(V024Teger teger) {
this( this(
new Gê̄ldGetậlAtHebrew(teger.getTytePart(T04PartQuad.PART_1)), new Gê̄ldGetậlÅtHebrew(teger.getTytePart(T04PartQuad.PART_1)),
new Gê̄ldGetậlAtHebrew(teger.getTytePart(T04PartQuad.PART_2)), new Gê̄ldGetậlÅtHebrew(teger.getTytePart(T04PartQuad.PART_2)),
new Gê̄ldGetậlAtHebrew(teger.getTytePart(T04PartQuad.PART_3)), new Gê̄ldGetậlÅtHebrew(teger.getTytePart(T04PartQuad.PART_3)),
new Gê̄ldGetậlAtHebrew(teger.getTytePart(T04PartQuad.PART_4)) new Gê̄ldGetậlÅtHebrew(teger.getTytePart(T04PartQuad.PART_4))
); );
} }
public Gê̄ldGetậl(Gê̄ldGetậlAtHebrew nummerAlphabet, Gê̄ldGetậlAtHebrew nummerDeelA, Gê̄ldGetậlAtHebrew nummerDeelB, Gê̄ldGetậlAtHebrew nummerDeelC) { public Gê̄ldGetậl(Gê̄ldGetậlÅtHebrew nummerAlphabet, Gê̄ldGetậlÅtHebrew nummerDeelA, Gê̄ldGetậlÅtHebrew nummerDeelB, Gê̄ldGetậlÅtHebrew nummerDeelC) {
this.nummerAlphabet = nummerAlphabet; this.nummerAlphabet = nummerAlphabet;
this.nummerDeelA = nummerDeelA; this.nummerDeelA = nummerDeelA;
this.nummerDeelB = nummerDeelB; this.nummerDeelB = nummerDeelB;
@ -47,9 +47,9 @@ public class Gê̄ldGetậl {
if (money.length() > 8) { // RL + 4 chars + 3 vowels if (money.length() > 8) { // RL + 4 chars + 3 vowels
throw new IllegalArgumentException("Money length should not exceed 8 codepoints"); throw new IllegalArgumentException("Money length should not exceed 8 codepoints");
} }
List<Gê̄ldGetậlAtHebrew> result = new ArrayList<>(); List<Gê̄ldGetậlÅtHebrew> result = new ArrayList<>();
Gê̄ldGetậlAtHebrew geldDigit = null; Gê̄ldGetậlÅtHebrew geldDigit = null;
for (int i=0;i<money.length();i++) { for (int i=0;i<money.length();i++) {
char codePoint = (char) money.codePointAt(i); char codePoint = (char) money.codePointAt(i);
if (LEFT_TO_RIGHT_MARK.equals(codePoint)) { if (LEFT_TO_RIGHT_MARK.equals(codePoint)) {
@ -59,8 +59,8 @@ public class Gê̄ldGetậl {
continue; continue;
} }
if (geldDigit != null) { if (geldDigit != null) {
Gê̄ldGetậlAtHebrewVowel vowel = Gê̄ldGetậlAtHebrewVowel.valueOfCharacter(codePoint); Gê̄ldGetậlÅtHebrewVowel vowel = Gê̄ldGetậlÅtHebrewVowel.valueOfCharacter(codePoint);
if (!Gê̄ldGetậlAtHebrewVowel.NONE.equals(vowel)) { if (!Gê̄ldGetậlÅtHebrewVowel.NONE.equals(vowel)) {
geldDigit.setVowel(vowel); geldDigit.setVowel(vowel);
result.add(geldDigit); result.add(geldDigit);
geldDigit = null; geldDigit = null;
@ -69,11 +69,11 @@ public class Gê̄ldGetậl {
result.add(geldDigit); result.add(geldDigit);
} }
} }
Gê̄ldGetậlAtHebrewLetter letter = Gê̄ldGetậlAtHebrewLetter.valueOfCharacter(codePoint); Gê̄ldGetậlÅtHebrewLetter letter = Gê̄ldGetậlÅtHebrewLetter.valueOfCharacter(codePoint);
if (Gê̄ldGetậlAtHebrewLetter.NONE.equals(letter)) { if (Gê̄ldGetậlÅtHebrewLetter.NONE.equals(letter)) {
throw new IllegalArgumentException("Unknown fraction codepoint: 0x"+Integer.toHexString(codePoint)); throw new IllegalArgumentException("Unknown fraction codepoint: 0x"+Integer.toHexString(codePoint));
} }
geldDigit = new Gê̄ldGetậlAtHebrew(letter); geldDigit = new Gê̄ldGetậlÅtHebrew(letter);
} }
if (geldDigit != null) { if (geldDigit != null) {
result.add(geldDigit); result.add(geldDigit);
@ -82,24 +82,24 @@ public class Gê̄ldGetậl {
if (result.isEmpty()) { if (result.isEmpty()) {
throw new IllegalArgumentException("No hebrew money found"); throw new IllegalArgumentException("No hebrew money found");
} }
Gê̄ldGetậlAtHebrew full = result.get(0); Gê̄ldGetậlÅtHebrew full = result.get(0);
Gê̄ldGetậlAtHebrew deelA = null; Gê̄ldGetậlÅtHebrew deelA = null;
Gê̄ldGetậlAtHebrew deelB = null; Gê̄ldGetậlÅtHebrew deelB = null;
Gê̄ldGetậlAtHebrew deelC = null; Gê̄ldGetậlÅtHebrew deelC = null;
if (result.size() > 1) { if (result.size() > 1) {
deelA = result.get(1); deelA = result.get(1);
} else { } else {
deelA = new Gê̄ldGetậlAtHebrew(); deelA = new Gê̄ldGetậlÅtHebrew();
} }
if (result.size() > 2) { if (result.size() > 2) {
deelB = result.get(2); deelB = result.get(2);
} else { } else {
deelB = new Gê̄ldGetậlAtHebrew(); deelB = new Gê̄ldGetậlÅtHebrew();
} }
if (result.size() > 3) { if (result.size() > 3) {
deelC = result.get(3); deelC = result.get(3);
} else { } else {
deelC = new Gê̄ldGetậlAtHebrew(); deelC = new Gê̄ldGetậlÅtHebrew();
} }
this.nummerAlphabet = full; this.nummerAlphabet = full;
this.nummerDeelA = deelA; this.nummerDeelA = deelA;
@ -110,35 +110,35 @@ public class Gê̄ldGetậl {
private double calculateDecimalValue() { private double calculateDecimalValue() {
boolean hasFourDigits = boolean hasFourDigits =
!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelA.getLetter()) && !Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelA.getLetter()) &&
!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelB.getLetter()) && !Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelB.getLetter()) &&
!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelC.getLetter()); !Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelC.getLetter());
double totalDecimalValue = nummerAlphabet.toDecimalValue(hasFourDigits); double totalDecimalValue = nummerAlphabet.toDecimalValue(hasFourDigits);
if (!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelA.getLetter())) { if (!Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelA.getLetter())) {
totalDecimalValue += nummerDeelA.toDecimalValue(false); totalDecimalValue += nummerDeelA.toDecimalValue(false);
} }
if (!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelB.getLetter())) { if (!Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelB.getLetter())) {
totalDecimalValue += nummerDeelB.toDecimalValue(false); totalDecimalValue += nummerDeelB.toDecimalValue(false);
} }
if (!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelC.getLetter())) { if (!Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelC.getLetter())) {
totalDecimalValue += nummerDeelC.toDecimalValue(false); totalDecimalValue += nummerDeelC.toDecimalValue(false);
} }
return totalDecimalValue; return totalDecimalValue;
} }
public Gê̄ldGetậlAtHebrew getNummerAlphabet() { public Gê̄ldGetậlÅtHebrew getNummerAlphabet() {
return nummerAlphabet; return nummerAlphabet;
} }
public Gê̄ldGetậlAtHebrew getNummerDeelA() { public Gê̄ldGetậlÅtHebrew getNummerDeelA() {
return nummerDeelA; return nummerDeelA;
} }
public Gê̄ldGetậlAtHebrew getNummerDeelB() { public Gê̄ldGetậlÅtHebrew getNummerDeelB() {
return nummerDeelB; return nummerDeelB;
} }
public Gê̄ldGetậlAtHebrew getNummerDeelC() { public Gê̄ldGetậlÅtHebrew getNummerDeelC() {
return nummerDeelC; return nummerDeelC;
} }
@ -163,24 +163,24 @@ public class Gê̄ldGetậl {
StringBuilder buf = new StringBuilder(); StringBuilder buf = new StringBuilder();
buf.append(RIGHT_TO_LEFT_MARK); buf.append(RIGHT_TO_LEFT_MARK);
buf.append(nummerAlphabet.getLetter().getCharacter()); buf.append(nummerAlphabet.getLetter().getCharacter());
if (!Gê̄ldGetậlAtHebrewVowel.NONE.equals(nummerAlphabet.getVowel())) { if (!Gê̄ldGetậlÅtHebrewVowel.NONE.equals(nummerAlphabet.getVowel())) {
buf.append(nummerAlphabet.getVowel().getCharacter()); buf.append(nummerAlphabet.getVowel().getCharacter());
} }
if (!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelA.getLetter())) { if (!Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelA.getLetter())) {
buf.append(nummerDeelA.getLetter().getCharacter()); buf.append(nummerDeelA.getLetter().getCharacter());
if (!Gê̄ldGetậlAtHebrewVowel.NONE.equals(nummerDeelA.getVowel())) { if (!Gê̄ldGetậlÅtHebrewVowel.NONE.equals(nummerDeelA.getVowel())) {
buf.append(nummerDeelA.getVowel().getCharacter()); buf.append(nummerDeelA.getVowel().getCharacter());
} }
} }
if (!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelB.getLetter())) { if (!Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelB.getLetter())) {
buf.append(nummerDeelB.getLetter().getCharacter()); buf.append(nummerDeelB.getLetter().getCharacter());
if (!Gê̄ldGetậlAtHebrewVowel.NONE.equals(nummerDeelB.getVowel())) { if (!Gê̄ldGetậlÅtHebrewVowel.NONE.equals(nummerDeelB.getVowel())) {
buf.append(nummerDeelB.getVowel().getCharacter()); buf.append(nummerDeelB.getVowel().getCharacter());
} }
} }
if (!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelC.getLetter())) { if (!Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelC.getLetter())) {
buf.append(nummerDeelC.getLetter().getCharacter()); buf.append(nummerDeelC.getLetter().getCharacter());
if (!Gê̄ldGetậlAtHebrewVowel.NONE.equals(nummerDeelC.getVowel())) { if (!Gê̄ldGetậlÅtHebrewVowel.NONE.equals(nummerDeelC.getVowel())) {
buf.append(nummerDeelC.getVowel().getCharacter()); buf.append(nummerDeelC.getVowel().getCharacter());
} }
} }

View file

@ -9,34 +9,34 @@ import love.distributedrebirth.numberxd.base2t.V009Tyte;
* *
* @author willemtsade ©Δ 仙上主天 * @author willemtsade ©Δ 仙上主天
*/ */
public class Gê̄ldGetậlAtHebrew { public class Gê̄ldGetậlÅtHebrew {
private static final double NUMERATOR_ONE = 1d; private static final double NUMERATOR_ONE = 1d;
private static final int FRACTION_POWER = 10; private static final int FRACTION_POWER = 10;
private Gê̄ldGetậlAtHebrewLetter letter; private Gê̄ldGetậlÅtHebrewLetter letter;
private Gê̄ldGetậlAtHebrewVowel vowel; private Gê̄ldGetậlÅtHebrewVowel vowel;
public Gê̄ldGetậlAtHebrew() { public Gê̄ldGetậlÅtHebrew() {
this.letter = Gê̄ldGetậlAtHebrewLetter.NONE; this.letter = Gê̄ldGetậlÅtHebrewLetter.NONE;
this.vowel = Gê̄ldGetậlAtHebrewVowel.NONE; this.vowel = Gê̄ldGetậlÅtHebrewVowel.NONE;
} }
public Gê̄ldGetậlAtHebrew(Gê̄ldGetậlAtHebrewLetter letter) { public Gê̄ldGetậlÅtHebrew(Gê̄ldGetậlÅtHebrewLetter letter) {
this.letter = letter; this.letter = letter;
this.vowel = Gê̄ldGetậlAtHebrewVowel.NONE; this.vowel = Gê̄ldGetậlÅtHebrewVowel.NONE;
} }
public Gê̄ldGetậlAtHebrew(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).getValue().ordinalOf(T08PartOctal.PART_1);
int value1 = tyte.getValue(T03PartTrit.PART_2).getValue().ordinalOf(T08PartOctal.PART_2); int value1 = tyte.getValue(T03PartTrit.PART_2).getValue().ordinalOf(T08PartOctal.PART_2);
int value2 = tyte.getValue(T03PartTrit.PART_3).getValue().ordinalOf(T08PartOctal.PART_3); int value2 = tyte.getValue(T03PartTrit.PART_3).getValue().ordinalOf(T08PartOctal.PART_3);
int combinedValue = value0 + value1 + value2; int combinedValue = value0 + value1 + value2;
letter = Gê̄ldGetậlAtHebrewLetter.indexOf(combinedValue); letter = Gê̄ldGetậlÅtHebrewLetter.indexOf(combinedValue);
vowel = Gê̄ldGetậlAtHebrewVowel.indexOf(combinedValue >> Gê̄ldGetậlAtHebrewLetter.SHIFT_5); vowel = Gê̄ldGetậlÅtHebrewVowel.indexOf(combinedValue >> Gê̄ldGetậlÅtHebrewLetter.SHIFT_5);
} }
public V009Tyte toTyte() { public V009Tyte toTyte() {
int combinedValue = letter.ordinal() + (vowel.ordinal() << Gê̄ldGetậlAtHebrewLetter.SHIFT_5); int combinedValue = letter.ordinal() + (vowel.ordinal() << Gê̄ldGetậlÅtHebrewLetter.SHIFT_5);
T08PartOctal value0 = T08PartOctal.indexOf(T08PartOctal.PART_1, combinedValue); T08PartOctal value0 = T08PartOctal.indexOf(T08PartOctal.PART_1, combinedValue);
T08PartOctal value1 = T08PartOctal.indexOf(T08PartOctal.PART_2, combinedValue); T08PartOctal value1 = T08PartOctal.indexOf(T08PartOctal.PART_2, combinedValue);
T08PartOctal value2 = T08PartOctal.indexOf(T08PartOctal.PART_3, combinedValue); T08PartOctal value2 = T08PartOctal.indexOf(T08PartOctal.PART_3, combinedValue);
@ -48,26 +48,26 @@ public class Gê̄ldGetậlAtHebrew {
if (firstChar) { if (firstChar) {
return fraction; // use full value return fraction; // use full value
} }
if (!Gê̄ldGetậlAtHebrewVowel.NONE.equals(vowel)) { if (!Gê̄ldGetậlÅtHebrewVowel.NONE.equals(vowel)) {
fraction = fraction * Math.pow(FRACTION_POWER, vowel.getFractionOffset()); fraction = fraction * Math.pow(FRACTION_POWER, vowel.getFractionOffset());
} }
double result = NUMERATOR_ONE/fraction; double result = NUMERATOR_ONE/fraction;
return result; return result;
} }
public Gê̄ldGetậlAtHebrewLetter getLetter() { public Gê̄ldGetậlÅtHebrewLetter getLetter() {
return letter; return letter;
} }
public void setLetter(Gê̄ldGetậlAtHebrewLetter letter) { public void setLetter(Gê̄ldGetậlÅtHebrewLetter letter) {
this.letter = letter; this.letter = letter;
} }
public Gê̄ldGetậlAtHebrewVowel getVowel() { public Gê̄ldGetậlÅtHebrewVowel getVowel() {
return vowel; return vowel;
} }
public void setVowel(Gê̄ldGetậlAtHebrewVowel vowel) { public void setVowel(Gê̄ldGetậlÅtHebrewVowel vowel) {
this.vowel = vowel; this.vowel = vowel;
} }
} }

View file

@ -10,7 +10,7 @@ import java.util.stream.Collectors;
* *
* @author willemtsade ©Δ 仙上主天 * @author willemtsade ©Δ 仙上主天
*/ */
public enum Gê̄ldGetậlAtHebrewLetter { public enum Gê̄ldGetậlÅtHebrewLetter {
// Unicode is horror in any language else than ascii; // Unicode is horror in any language else than ascii;
// VS Alphabet order // VS Alphabet order
// VS Unicode order // VS Unicode order
@ -80,10 +80,10 @@ public enum Gê̄ldGetậlAtHebrewLetter {
private final int decimal; private final int decimal;
private final char character; private final char character;
private static final Map<Character, Gê̄ldGetậlAtHebrewLetter> CHAR_MAP = Collections.unmodifiableMap( private static final Map<Character, Gê̄ldGetậlÅtHebrewLetter> CHAR_MAP = Collections.unmodifiableMap(
Arrays.asList(values()).stream().collect(Collectors.toMap(v -> v.getCharacter(), v -> v))); Arrays.asList(values()).stream().collect(Collectors.toMap(v -> v.getCharacter(), v -> v)));
private Gê̄ldGetậlAtHebrewLetter(int decimal, char character) { private Gê̄ldGetậlÅtHebrewLetter(int decimal, char character) {
this.decimal = decimal; this.decimal = decimal;
this.character = character; this.character = character;
} }
@ -96,11 +96,11 @@ public enum Gê̄ldGetậlAtHebrewLetter {
return character; return character;
} }
public static Gê̄ldGetậlAtHebrewLetter indexOf(int index) { public static Gê̄ldGetậlÅtHebrewLetter indexOf(int index) {
return values()[index & BITMASK]; return values()[index & BITMASK];
} }
public static Gê̄ldGetậlAtHebrewLetter valueOfCharacter(char codePoint) { public static Gê̄ldGetậlÅtHebrewLetter valueOfCharacter(char codePoint) {
return CHAR_MAP.getOrDefault(codePoint, Gê̄ldGetậlAtHebrewLetter.NONE); return CHAR_MAP.getOrDefault(codePoint, Gê̄ldGetậlÅtHebrewLetter.NONE);
} }
} }

View file

@ -10,7 +10,7 @@ import java.util.stream.Collectors;
* *
* @author willemtsade ©Δ 仙上主天 * @author willemtsade ©Δ 仙上主天
*/ */
public enum Gê̄ldGetậlAtHebrewVowel { public enum Gê̄ldGetậlÅtHebrewVowel {
NONE (0, (char) 0x0000), NONE (0, (char) 0x0000),
VOWEL_1 (1, (char) 0x05B4), VOWEL_1 (1, (char) 0x05B4),
VOWEL_2 (2, (char) 0x05B5), VOWEL_2 (2, (char) 0x05B5),
@ -33,10 +33,10 @@ public enum Gê̄ldGetậlAtHebrewVowel {
private final int fractionOffset; private final int fractionOffset;
private final char character; private final char character;
private static final Map<Character, Gê̄ldGetậlAtHebrewVowel> CHAR_MAP = Collections.unmodifiableMap( private static final Map<Character, Gê̄ldGetậlÅtHebrewVowel> CHAR_MAP = Collections.unmodifiableMap(
Arrays.asList(values()).stream().collect(Collectors.toMap(v -> v.getCharacter(), v -> v))); Arrays.asList(values()).stream().collect(Collectors.toMap(v -> v.getCharacter(), v -> v)));
private Gê̄ldGetậlAtHebrewVowel(int fractionOffset, char character) { private Gê̄ldGetậlÅtHebrewVowel(int fractionOffset, char character) {
this.fractionOffset = fractionOffset; this.fractionOffset = fractionOffset;
this.character = character; this.character = character;
} }
@ -49,11 +49,11 @@ public enum Gê̄ldGetậlAtHebrewVowel {
return character; return character;
} }
public static Gê̄ldGetậlAtHebrewVowel indexOf(int index) { public static Gê̄ldGetậlÅtHebrewVowel indexOf(int index) {
return values()[index & BITMASK]; return values()[index & BITMASK];
} }
public static Gê̄ldGetậlAtHebrewVowel valueOfCharacter(char codePoint) { public static Gê̄ldGetậlÅtHebrewVowel valueOfCharacter(char codePoint) {
return CHAR_MAP.getOrDefault(codePoint, Gê̄ldGetậlAtHebrewVowel.NONE); return CHAR_MAP.getOrDefault(codePoint, Gê̄ldGetậlÅtHebrewVowel.NONE);
} }
} }

View file

@ -16,18 +16,18 @@ import love.distributedrebirth.numberxd.base2t.VCA8Tath;
* *
* @author willemtsade ©Δ 仙上主天 * @author willemtsade ©Δ 仙上主天
*/ */
public class ŌṁKlompGetậl4ˢᴰ implements BaseNumberTyte<ŌṁKlompGetậl4ˢᴰ> { public class KlompGetậl4ˢᴰ implements BaseNumberTyte<KlompGetậl4ˢᴰ> {
public static int BIT_COUNT = V654Triz.BIT_COUNT * T08PartOctal.LENGTH; public static int BIT_COUNT = V654Triz.BIT_COUNT * T08PartOctal.LENGTH;
private final VCA8Tath[] values = new VCA8Tath[T08PartOctal.LENGTH]; private final VCA8Tath[] values = new VCA8Tath[T08PartOctal.LENGTH];
public ŌṁKlompGetậl4ˢᴰ() { public KlompGetậl4ˢᴰ() {
for (int i=0;i<T08PartOctal.LENGTH;i++) { for (int i=0;i<T08PartOctal.LENGTH;i++) {
this.values[i] = new VCA8Tath(); this.values[i] = new VCA8Tath();
} }
} }
public ŌṁKlompGetậl4ˢᴰ(T08PartOctalBaseIterator values) { public KlompGetậl4ˢᴰ(T08PartOctalBaseIterator values) {
for (int i=0;i<T08PartOctal.LENGTH;i++) { for (int i=0;i<T08PartOctal.LENGTH;i++) {
this.values[i] = new VCA8Tath(values); this.values[i] = new VCA8Tath(values);
} }
@ -47,8 +47,8 @@ public class ŌṁKlompGetậl4ˢᴰ implements BaseNumberTyte<ŌṁKlompGetậl
} }
@Override @Override
public ŌṁKlompGetậl4ˢᴰ toClone() { public KlompGetậl4ˢᴰ toClone() {
return new ŌṁKlompGetậl4ˢᴰ(iteratorOctalsByClone()); return new KlompGetậl4ˢᴰ(iteratorOctalsByClone());
} }
@Override @Override

View file

@ -10,14 +10,14 @@ import love.distributedrebirth.numberxd.base2t.V009TyteBaseAppender;
* *
* @author willemtsade ©Δ 仙上主天 * @author willemtsade ©Δ 仙上主天
*/ */
public class ŌṁKaassGetậl4ˢᴰ implements BaseNumberTyte<ŌṁKaassGetậl4ˢᴰ> { public class KlompÅtŌṁKaassGetậl4ˢᴰ implements BaseNumberTyte<KlompÅtŌṁKaassGetậl4ˢᴰ> {
private ŌṁKlompGetậl4ˢᴰ[] kaas; private KlompGetậl4ˢᴰ[] kaas;
private final int kaasCuts; private final int kaasCuts;
public ŌṁKaassGetậl4ˢᴰ(int kaasCuts) { public KlompÅtŌṁKaassGetậl4ˢᴰ(int kaasCuts) {
this.kaasCuts = kaasCuts; this.kaasCuts = kaasCuts;
this.kaas = new ŌṁKlompGetậl4ˢᴰ[kaasCuts]; this.kaas = new KlompGetậl4ˢᴰ[kaasCuts];
} }
public final int getKaasCuts() { public final int getKaasCuts() {
@ -34,39 +34,39 @@ public class ŌṁKaassGetậl4ˢᴰ implements BaseNumberTyte<ŌṁKaassGetậl
return part; return part;
} }
public final ŌṁKlompGetậl4ˢᴰ getValue(int part) { public final KlompGetậl4ˢᴰ getValue(int part) {
return kaas[validatePartRequest(part)]; return kaas[validatePartRequest(part)];
} }
public final void setValue(int part, ŌṁKlompGetậl4ˢᴰ value) { public final void setValue(int part, KlompGetậl4ˢᴰ value) {
kaas[validatePartRequest(part)] = value; kaas[validatePartRequest(part)] = value;
} }
@Override @Override
public final ŌṁKaassGetậl4ˢᴰ toClone() { public final KlompÅtŌṁKaassGetậl4ˢᴰ toClone() {
ŌṁKaassGetậl4ˢᴰ result = new ŌṁKaassGetậl4ˢᴰ(getKaasCuts()); KlompÅtŌṁKaassGetậl4ˢᴰ result = new KlompÅtŌṁKaassGetậl4ˢᴰ(getKaasCuts());
T08PartOctalBaseIterator clonedOctals = iteratorOctalsByClone(); T08PartOctalBaseIterator clonedOctals = iteratorOctalsByClone();
for (int i=0;i<getKaasCuts();i++) { for (int i=0;i<getKaasCuts();i++) {
result.setValue(i, new ŌṁKlompGetậl4ˢᴰ(clonedOctals)); result.setValue(i, new KlompGetậl4ˢᴰ(clonedOctals));
} }
return result; return result;
} }
@Override @Override
public final int getBitCount() { public final int getBitCount() {
return ŌṁKlompGetậl4ˢᴰ.BIT_COUNT * kaasCuts; return KlompGetậl4ˢᴰ.BIT_COUNT * kaasCuts;
} }
@Override @Override
public final void fillOctalsByClone(T08PartOctalBaseAppender appender) { public final void fillOctalsByClone(T08PartOctalBaseAppender appender) {
for (ŌṁKlompGetậl4ˢᴰ value:kaas) { for (KlompGetậl4ˢᴰ value:kaas) {
value.fillOctalsByClone(appender); value.fillOctalsByClone(appender);
} }
} }
@Override @Override
public void fillTytesByReference(V009TyteBaseAppender appender) { public void fillTytesByReference(V009TyteBaseAppender appender) {
for (ŌṁKlompGetậl4ˢᴰ value:kaas) { for (KlompGetậl4ˢᴰ value:kaas) {
value.fillTytesByReference(appender); value.fillTytesByReference(appender);
} }
} }