Rename kaas en klomp to OK

This commit is contained in:
Willem Cazander 2022-01-30 19:11:20 +01:00
parent e3e5c2fb15
commit 0607ac2e89
2 changed files with 17 additions and 17 deletions

View file

@ -11,14 +11,14 @@ import love.distributedrebirth.demo4d.base2t.V009TyteBaseAppender;
* @author willemtsade ©Δ 仙上主天
*
*/
public class KaassGetậl implements BaseNumberTyte<KaassGetậl> {
public class OKaassGetậl implements BaseNumberTyte<OKaassGetậl> {
private KlompGetậl[] kaas;
private OKlompGetậl[] kaas;
private final int kaasCuts;
public KaassGetậl(int kaasCuts) {
public OKaassGetậl(int kaasCuts) {
this.kaasCuts = kaasCuts;
this.kaas = new KlompGetậl[kaasCuts];
this.kaas = new OKlompGetậl[kaasCuts];
}
public final int getKaasCuts() {
@ -35,39 +35,39 @@ public class KaassGetậl implements BaseNumberTyte<KaassGetậl> {
return part;
}
public final KlompGetậl getValue(int part) {
public final OKlompGetậl getValue(int part) {
return kaas[validatePartRequest(part)];
}
public final void setValue(int part, KlompGetậl value) {
public final void setValue(int part, OKlompGetậl value) {
kaas[validatePartRequest(part)] = value;
}
@Override
public final KaassGetậl toClone() {
KaassGetậl result = new KaassGetậl(getKaasCuts());
public final OKaassGetậl toClone() {
OKaassGetậl result = new OKaassGetậl(getKaasCuts());
T08PartOctalBaseIterator clonedOctals = cloneIterator();
for (int i=0;i<getKaasCuts();i++) {
result.setValue(i, new KlompGetậl(clonedOctals));
result.setValue(i, new OKlompGetậl(clonedOctals));
}
return result;
}
@Override
public final int getBitCount() {
return KlompGetậl.BIT_COUNT * kaasCuts;
return OKlompGetậl.BIT_COUNT * kaasCuts;
}
@Override
public final void fillOctalValues(T08PartOctalBaseAppender appender) {
for (KlompGetậl value:kaas) {
for (OKlompGetậl value:kaas) {
value.fillOctalValues(appender);
}
}
@Override
public void fillTyteValues(V009TyteBaseAppender appender) {
for (KlompGetậl value:kaas) {
for (OKlompGetậl value:kaas) {
value.fillTyteValues(appender);
}
}

View file

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