Start with base getal interface
This commit is contained in:
parent
df444f4096
commit
198e7eb606
|
@ -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> {
|
||||
|
||||
|
||||
}
|
|
@ -3,7 +3,6 @@ package love.distributedrebirth.numberxd;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import love.distributedrebirth.numberxd.base2t.BaseNumberTyte;
|
||||
import love.distributedrebirth.numberxd.base2t.T08PartOctalBaseAppender;
|
||||
import love.distributedrebirth.numberxd.base2t.T08PartOctalBaseIterator;
|
||||
import love.distributedrebirth.numberxd.base2t.V009Tyte;
|
||||
|
@ -16,7 +15,7 @@ import love.distributedrebirth.numberxd.base2t.V090Tocta;
|
|||
*
|
||||
* @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 DENOMINATOR_SIZE = 9;
|
||||
|
|
|
@ -12,24 +12,24 @@ import love.distributedrebirth.numberxd.base2t.V024Teger;
|
|||
*/
|
||||
public class Gê̄ldGetậl {
|
||||
|
||||
private final Gê̄ldGetậlAtHebrew nummerAlphabet;
|
||||
private final Gê̄ldGetậlAtHebrew nummerDeelA;
|
||||
private final Gê̄ldGetậlAtHebrew nummerDeelB;
|
||||
private final Gê̄ldGetậlAtHebrew nummerDeelC;
|
||||
private final Gê̄ldGetậlÅtHebrew nummerAlphabet;
|
||||
private final Gê̄ldGetậlÅtHebrew nummerDeelA;
|
||||
private final Gê̄ldGetậlÅtHebrew nummerDeelB;
|
||||
private final Gê̄ldGetậlÅtHebrew nummerDeelC;
|
||||
private final double totalDecimalValue;
|
||||
private static final Character LEFT_TO_RIGHT_MARK = 0x200E;
|
||||
private static final Character RIGHT_TO_LEFT_MARK = 0x200F;
|
||||
|
||||
public Gê̄ldGetậl(V024Teger teger) {
|
||||
this(
|
||||
new Gê̄ldGetậlAtHebrew(teger.getTytePart(T04PartQuad.PART_1)),
|
||||
new Gê̄ldGetậlAtHebrew(teger.getTytePart(T04PartQuad.PART_2)),
|
||||
new Gê̄ldGetậlAtHebrew(teger.getTytePart(T04PartQuad.PART_3)),
|
||||
new Gê̄ldGetậlAtHebrew(teger.getTytePart(T04PartQuad.PART_4))
|
||||
new Gê̄ldGetậlÅtHebrew(teger.getTytePart(T04PartQuad.PART_1)),
|
||||
new Gê̄ldGetậlÅtHebrew(teger.getTytePart(T04PartQuad.PART_2)),
|
||||
new Gê̄ldGetậlÅtHebrew(teger.getTytePart(T04PartQuad.PART_3)),
|
||||
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.nummerDeelA = nummerDeelA;
|
||||
this.nummerDeelB = nummerDeelB;
|
||||
|
@ -47,9 +47,9 @@ public class Gê̄ldGetậl {
|
|||
if (money.length() > 8) { // RL + 4 chars + 3 vowels
|
||||
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++) {
|
||||
char codePoint = (char) money.codePointAt(i);
|
||||
if (LEFT_TO_RIGHT_MARK.equals(codePoint)) {
|
||||
|
@ -59,8 +59,8 @@ public class Gê̄ldGetậl {
|
|||
continue;
|
||||
}
|
||||
if (geldDigit != null) {
|
||||
Gê̄ldGetậlAtHebrewVowel vowel = Gê̄ldGetậlAtHebrewVowel.valueOfCharacter(codePoint);
|
||||
if (!Gê̄ldGetậlAtHebrewVowel.NONE.equals(vowel)) {
|
||||
Gê̄ldGetậlÅtHebrewVowel vowel = Gê̄ldGetậlÅtHebrewVowel.valueOfCharacter(codePoint);
|
||||
if (!Gê̄ldGetậlÅtHebrewVowel.NONE.equals(vowel)) {
|
||||
geldDigit.setVowel(vowel);
|
||||
result.add(geldDigit);
|
||||
geldDigit = null;
|
||||
|
@ -69,11 +69,11 @@ public class Gê̄ldGetậl {
|
|||
result.add(geldDigit);
|
||||
}
|
||||
}
|
||||
Gê̄ldGetậlAtHebrewLetter letter = Gê̄ldGetậlAtHebrewLetter.valueOfCharacter(codePoint);
|
||||
if (Gê̄ldGetậlAtHebrewLetter.NONE.equals(letter)) {
|
||||
Gê̄ldGetậlÅtHebrewLetter letter = Gê̄ldGetậlÅtHebrewLetter.valueOfCharacter(codePoint);
|
||||
if (Gê̄ldGetậlÅtHebrewLetter.NONE.equals(letter)) {
|
||||
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) {
|
||||
result.add(geldDigit);
|
||||
|
@ -82,24 +82,24 @@ public class Gê̄ldGetậl {
|
|||
if (result.isEmpty()) {
|
||||
throw new IllegalArgumentException("No hebrew money found");
|
||||
}
|
||||
Gê̄ldGetậlAtHebrew full = result.get(0);
|
||||
Gê̄ldGetậlAtHebrew deelA = null;
|
||||
Gê̄ldGetậlAtHebrew deelB = null;
|
||||
Gê̄ldGetậlAtHebrew deelC = null;
|
||||
Gê̄ldGetậlÅtHebrew full = result.get(0);
|
||||
Gê̄ldGetậlÅtHebrew deelA = null;
|
||||
Gê̄ldGetậlÅtHebrew deelB = null;
|
||||
Gê̄ldGetậlÅtHebrew deelC = null;
|
||||
if (result.size() > 1) {
|
||||
deelA = result.get(1);
|
||||
} else {
|
||||
deelA = new Gê̄ldGetậlAtHebrew();
|
||||
deelA = new Gê̄ldGetậlÅtHebrew();
|
||||
}
|
||||
if (result.size() > 2) {
|
||||
deelB = result.get(2);
|
||||
} else {
|
||||
deelB = new Gê̄ldGetậlAtHebrew();
|
||||
deelB = new Gê̄ldGetậlÅtHebrew();
|
||||
}
|
||||
if (result.size() > 3) {
|
||||
deelC = result.get(3);
|
||||
} else {
|
||||
deelC = new Gê̄ldGetậlAtHebrew();
|
||||
deelC = new Gê̄ldGetậlÅtHebrew();
|
||||
}
|
||||
this.nummerAlphabet = full;
|
||||
this.nummerDeelA = deelA;
|
||||
|
@ -110,35 +110,35 @@ public class Gê̄ldGetậl {
|
|||
|
||||
private double calculateDecimalValue() {
|
||||
boolean hasFourDigits =
|
||||
!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelA.getLetter()) &&
|
||||
!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelB.getLetter()) &&
|
||||
!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelC.getLetter());
|
||||
!Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelA.getLetter()) &&
|
||||
!Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelB.getLetter()) &&
|
||||
!Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelC.getLetter());
|
||||
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);
|
||||
}
|
||||
if (!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelB.getLetter())) {
|
||||
if (!Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelB.getLetter())) {
|
||||
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);
|
||||
}
|
||||
return totalDecimalValue;
|
||||
}
|
||||
|
||||
public Gê̄ldGetậlAtHebrew getNummerAlphabet() {
|
||||
public Gê̄ldGetậlÅtHebrew getNummerAlphabet() {
|
||||
return nummerAlphabet;
|
||||
}
|
||||
|
||||
public Gê̄ldGetậlAtHebrew getNummerDeelA() {
|
||||
public Gê̄ldGetậlÅtHebrew getNummerDeelA() {
|
||||
return nummerDeelA;
|
||||
}
|
||||
|
||||
public Gê̄ldGetậlAtHebrew getNummerDeelB() {
|
||||
public Gê̄ldGetậlÅtHebrew getNummerDeelB() {
|
||||
return nummerDeelB;
|
||||
}
|
||||
|
||||
public Gê̄ldGetậlAtHebrew getNummerDeelC() {
|
||||
public Gê̄ldGetậlÅtHebrew getNummerDeelC() {
|
||||
return nummerDeelC;
|
||||
}
|
||||
|
||||
|
@ -163,24 +163,24 @@ public class Gê̄ldGetậl {
|
|||
StringBuilder buf = new StringBuilder();
|
||||
buf.append(RIGHT_TO_LEFT_MARK);
|
||||
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());
|
||||
}
|
||||
if (!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelA.getLetter())) {
|
||||
if (!Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelA.getLetter())) {
|
||||
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());
|
||||
}
|
||||
}
|
||||
if (!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelB.getLetter())) {
|
||||
if (!Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelB.getLetter())) {
|
||||
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());
|
||||
}
|
||||
}
|
||||
if (!Gê̄ldGetậlAtHebrewLetter.NONE.equals(nummerDeelC.getLetter())) {
|
||||
if (!Gê̄ldGetậlÅtHebrewLetter.NONE.equals(nummerDeelC.getLetter())) {
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,34 +9,34 @@ import love.distributedrebirth.numberxd.base2t.V009Tyte;
|
|||
*
|
||||
* @author willemtsade ©Δ∞ 仙上主天
|
||||
*/
|
||||
public class Gê̄ldGetậlAtHebrew {
|
||||
public class Gê̄ldGetậlÅtHebrew {
|
||||
|
||||
private static final double NUMERATOR_ONE = 1d;
|
||||
private static final int FRACTION_POWER = 10;
|
||||
private Gê̄ldGetậlAtHebrewLetter letter;
|
||||
private Gê̄ldGetậlAtHebrewVowel vowel;
|
||||
private Gê̄ldGetậlÅtHebrewLetter letter;
|
||||
private Gê̄ldGetậlÅtHebrewVowel vowel;
|
||||
|
||||
public Gê̄ldGetậlAtHebrew() {
|
||||
this.letter = Gê̄ldGetậlAtHebrewLetter.NONE;
|
||||
this.vowel = Gê̄ldGetậlAtHebrewVowel.NONE;
|
||||
public Gê̄ldGetậlÅtHebrew() {
|
||||
this.letter = Gê̄ldGetậlÅtHebrewLetter.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.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 value1 = tyte.getValue(T03PartTrit.PART_2).getValue().ordinalOf(T08PartOctal.PART_2);
|
||||
int value2 = tyte.getValue(T03PartTrit.PART_3).getValue().ordinalOf(T08PartOctal.PART_3);
|
||||
int combinedValue = value0 + value1 + value2;
|
||||
letter = Gê̄ldGetậlAtHebrewLetter.indexOf(combinedValue);
|
||||
vowel = Gê̄ldGetậlAtHebrewVowel.indexOf(combinedValue >> Gê̄ldGetậlAtHebrewLetter.SHIFT_5);
|
||||
letter = Gê̄ldGetậlÅtHebrewLetter.indexOf(combinedValue);
|
||||
vowel = Gê̄ldGetậlÅtHebrewVowel.indexOf(combinedValue >> Gê̄ldGetậlÅtHebrewLetter.SHIFT_5);
|
||||
}
|
||||
|
||||
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 value1 = T08PartOctal.indexOf(T08PartOctal.PART_2, combinedValue);
|
||||
T08PartOctal value2 = T08PartOctal.indexOf(T08PartOctal.PART_3, combinedValue);
|
||||
|
@ -48,26 +48,26 @@ public class Gê̄ldGetậlAtHebrew {
|
|||
if (firstChar) {
|
||||
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());
|
||||
}
|
||||
double result = NUMERATOR_ONE/fraction;
|
||||
return result;
|
||||
}
|
||||
|
||||
public Gê̄ldGetậlAtHebrewLetter getLetter() {
|
||||
public Gê̄ldGetậlÅtHebrewLetter getLetter() {
|
||||
return letter;
|
||||
}
|
||||
|
||||
public void setLetter(Gê̄ldGetậlAtHebrewLetter letter) {
|
||||
public void setLetter(Gê̄ldGetậlÅtHebrewLetter letter) {
|
||||
this.letter = letter;
|
||||
}
|
||||
|
||||
public Gê̄ldGetậlAtHebrewVowel getVowel() {
|
||||
public Gê̄ldGetậlÅtHebrewVowel getVowel() {
|
||||
return vowel;
|
||||
}
|
||||
|
||||
public void setVowel(Gê̄ldGetậlAtHebrewVowel vowel) {
|
||||
public void setVowel(Gê̄ldGetậlÅtHebrewVowel vowel) {
|
||||
this.vowel = vowel;
|
||||
}
|
||||
}
|
|
@ -10,7 +10,7 @@ import java.util.stream.Collectors;
|
|||
*
|
||||
* @author willemtsade ©Δ∞ 仙上主天
|
||||
*/
|
||||
public enum Gê̄ldGetậlAtHebrewLetter {
|
||||
public enum Gê̄ldGetậlÅtHebrewLetter {
|
||||
// Unicode is horror in any language else than ascii;
|
||||
// VS Alphabet order
|
||||
// VS Unicode order
|
||||
|
@ -80,10 +80,10 @@ public enum Gê̄ldGetậlAtHebrewLetter {
|
|||
private final int decimal;
|
||||
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)));
|
||||
|
||||
private Gê̄ldGetậlAtHebrewLetter(int decimal, char character) {
|
||||
private Gê̄ldGetậlÅtHebrewLetter(int decimal, char character) {
|
||||
this.decimal = decimal;
|
||||
this.character = character;
|
||||
}
|
||||
|
@ -96,11 +96,11 @@ public enum Gê̄ldGetậlAtHebrewLetter {
|
|||
return character;
|
||||
}
|
||||
|
||||
public static Gê̄ldGetậlAtHebrewLetter indexOf(int index) {
|
||||
public static Gê̄ldGetậlÅtHebrewLetter indexOf(int index) {
|
||||
return values()[index & BITMASK];
|
||||
}
|
||||
|
||||
public static Gê̄ldGetậlAtHebrewLetter valueOfCharacter(char codePoint) {
|
||||
return CHAR_MAP.getOrDefault(codePoint, Gê̄ldGetậlAtHebrewLetter.NONE);
|
||||
public static Gê̄ldGetậlÅtHebrewLetter valueOfCharacter(char codePoint) {
|
||||
return CHAR_MAP.getOrDefault(codePoint, Gê̄ldGetậlÅtHebrewLetter.NONE);
|
||||
}
|
||||
}
|
|
@ -10,7 +10,7 @@ import java.util.stream.Collectors;
|
|||
*
|
||||
* @author willemtsade ©Δ∞ 仙上主天
|
||||
*/
|
||||
public enum Gê̄ldGetậlAtHebrewVowel {
|
||||
public enum Gê̄ldGetậlÅtHebrewVowel {
|
||||
NONE (0, (char) 0x0000),
|
||||
VOWEL_1 (1, (char) 0x05B4),
|
||||
VOWEL_2 (2, (char) 0x05B5),
|
||||
|
@ -33,10 +33,10 @@ public enum Gê̄ldGetậlAtHebrewVowel {
|
|||
private final int fractionOffset;
|
||||
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)));
|
||||
|
||||
private Gê̄ldGetậlAtHebrewVowel(int fractionOffset, char character) {
|
||||
private Gê̄ldGetậlÅtHebrewVowel(int fractionOffset, char character) {
|
||||
this.fractionOffset = fractionOffset;
|
||||
this.character = character;
|
||||
}
|
||||
|
@ -49,11 +49,11 @@ public enum Gê̄ldGetậlAtHebrewVowel {
|
|||
return character;
|
||||
}
|
||||
|
||||
public static Gê̄ldGetậlAtHebrewVowel indexOf(int index) {
|
||||
public static Gê̄ldGetậlÅtHebrewVowel indexOf(int index) {
|
||||
return values()[index & BITMASK];
|
||||
}
|
||||
|
||||
public static Gê̄ldGetậlAtHebrewVowel valueOfCharacter(char codePoint) {
|
||||
return CHAR_MAP.getOrDefault(codePoint, Gê̄ldGetậlAtHebrewVowel.NONE);
|
||||
public static Gê̄ldGetậlÅtHebrewVowel valueOfCharacter(char codePoint) {
|
||||
return CHAR_MAP.getOrDefault(codePoint, Gê̄ldGetậlÅtHebrewVowel.NONE);
|
||||
}
|
||||
}
|
|
@ -16,18 +16,18 @@ import love.distributedrebirth.numberxd.base2t.VCA8Tath;
|
|||
*
|
||||
* @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;
|
||||
private final VCA8Tath[] values = new VCA8Tath[T08PartOctal.LENGTH];
|
||||
|
||||
public ŌṁKlompGetậl4ˢᴰ() {
|
||||
public KlompGetậl4ˢᴰ() {
|
||||
for (int i=0;i<T08PartOctal.LENGTH;i++) {
|
||||
this.values[i] = new VCA8Tath();
|
||||
}
|
||||
}
|
||||
|
||||
public ŌṁKlompGetậl4ˢᴰ(T08PartOctalBaseIterator values) {
|
||||
public KlompGetậl4ˢᴰ(T08PartOctalBaseIterator values) {
|
||||
for (int i=0;i<T08PartOctal.LENGTH;i++) {
|
||||
this.values[i] = new VCA8Tath(values);
|
||||
}
|
||||
|
@ -47,8 +47,8 @@ public class ŌṁKlompGetậl4ˢᴰ implements BaseNumberTyte<ŌṁKlompGetậl
|
|||
}
|
||||
|
||||
@Override
|
||||
public ŌṁKlompGetậl4ˢᴰ toClone() {
|
||||
return new ŌṁKlompGetậl4ˢᴰ(iteratorOctalsByClone());
|
||||
public KlompGetậl4ˢᴰ toClone() {
|
||||
return new KlompGetậl4ˢᴰ(iteratorOctalsByClone());
|
||||
}
|
||||
|
||||
@Override
|
|
@ -10,14 +10,14 @@ import love.distributedrebirth.numberxd.base2t.V009TyteBaseAppender;
|
|||
*
|
||||
* @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;
|
||||
|
||||
public ŌṁKaassGetậl4ˢᴰ(int kaasCuts) {
|
||||
public KlompÅtŌṁKaassGetậl4ˢᴰ(int kaasCuts) {
|
||||
this.kaasCuts = kaasCuts;
|
||||
this.kaas = new ŌṁKlompGetậl4ˢᴰ[kaasCuts];
|
||||
this.kaas = new KlompGetậl4ˢᴰ[kaasCuts];
|
||||
}
|
||||
|
||||
public final int getKaasCuts() {
|
||||
|
@ -34,39 +34,39 @@ public class ŌṁKaassGetậl4ˢᴰ implements BaseNumberTyte<ŌṁKaassGetậl
|
|||
return part;
|
||||
}
|
||||
|
||||
public final ŌṁKlompGetậl4ˢᴰ getValue(int part) {
|
||||
public final KlompGetậl4ˢᴰ getValue(int 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;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final ŌṁKaassGetậl4ˢᴰ toClone() {
|
||||
ŌṁKaassGetậl4ˢᴰ result = new ŌṁKaassGetậl4ˢᴰ(getKaasCuts());
|
||||
public final KlompÅtŌṁKaassGetậl4ˢᴰ toClone() {
|
||||
KlompÅtŌṁKaassGetậl4ˢᴰ result = new KlompÅtŌṁKaassGetậl4ˢᴰ(getKaasCuts());
|
||||
T08PartOctalBaseIterator clonedOctals = iteratorOctalsByClone();
|
||||
for (int i=0;i<getKaasCuts();i++) {
|
||||
result.setValue(i, new ŌṁKlompGetậl4ˢᴰ(clonedOctals));
|
||||
result.setValue(i, new KlompGetậl4ˢᴰ(clonedOctals));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final int getBitCount() {
|
||||
return ŌṁKlompGetậl4ˢᴰ.BIT_COUNT * kaasCuts;
|
||||
return KlompGetậl4ˢᴰ.BIT_COUNT * kaasCuts;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final void fillOctalsByClone(T08PartOctalBaseAppender appender) {
|
||||
for (ŌṁKlompGetậl4ˢᴰ value:kaas) {
|
||||
for (KlompGetậl4ˢᴰ value:kaas) {
|
||||
value.fillOctalsByClone(appender);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fillTytesByReference(V009TyteBaseAppender appender) {
|
||||
for (ŌṁKlompGetậl4ˢᴰ value:kaas) {
|
||||
for (KlompGetậl4ˢᴰ value:kaas) {
|
||||
value.fillTytesByReference(appender);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue