54 lines
1.6 KiB
Java
54 lines
1.6 KiB
Java
|
package love.distributedrebirth.numberxd;
|
||
|
|
||
|
import love.distributedrebirth.numberxd.base2t.BaseIteratorOctal;
|
||
|
import love.distributedrebirth.numberxd.base2t.part.T16PartHex;
|
||
|
import love.distributedrebirth.numberxd.base2t.type.V009Tyte;
|
||
|
import love.distributedrebirth.numberxd.base2t.type.V144Tocta;
|
||
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||
|
|
||
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||
|
abstract public class AbstractGroßGetậlŌṁ1ⁿᴰ<T extends BaseGetậl<T,V009Tyte>> extends AbstractBaseGetậlLevel1<T,V009Tyte> {
|
||
|
|
||
|
private V144Tocta[] values;
|
||
|
private int valuesLength;
|
||
|
private byte fractalLevel;
|
||
|
|
||
|
public AbstractGroßGetậlŌṁ1ⁿᴰ(byte fractalLevel) {
|
||
|
this.fractalLevel = fractalLevel;
|
||
|
this.valuesLength = resolveFractalLevel(fractalLevel);
|
||
|
this.values = new V144Tocta[valuesLength];
|
||
|
for (int i=0;i<this.values.length;i++) {
|
||
|
this.values[i] = new V144Tocta();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public AbstractGroßGetậlŌṁ1ⁿᴰ(byte fractalLevel, BaseIteratorOctal values) {
|
||
|
this.fractalLevel = fractalLevel;
|
||
|
this.valuesLength = resolveFractalLevel(fractalLevel);
|
||
|
this.values = new V144Tocta[valuesLength];
|
||
|
for (int i=0;i<this.values.length;i++) {
|
||
|
this.values[i] = new V144Tocta(values);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
abstract protected int resolveFractalLevel(byte level);
|
||
|
|
||
|
public V009Tyte getValue() {
|
||
|
return values[valueIndex1].getTytePart(T16PartHex.values()[valueIndex0]);
|
||
|
}
|
||
|
|
||
|
public byte getFractalLevel() {
|
||
|
return fractalLevel;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public int getValueIndex0Length() {
|
||
|
return T16PartHex.LENGTH();
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public int getValueIndex1Length() {
|
||
|
return valuesLength;
|
||
|
}
|
||
|
}
|