JPP: Given the terminators an kaas identity and used it
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 2m9s
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 2m9s
This commit is contained in:
parent
f0207bec5b
commit
4ec059274c
56 changed files with 175 additions and 76 deletions
|
|
@ -37,11 +37,11 @@ public enum JediTempleBase8InfinityOne implements JediTempleBase8Rope {
|
|||
|
||||
@Override
|
||||
public T002ᖟ spin() {
|
||||
return T002ᖟ.亞;
|
||||
return T002ᖟ.亞.thisᵀᴮᵒⁿᵉ();
|
||||
}
|
||||
|
||||
@Override
|
||||
public T008ᖟ next() {
|
||||
return T008ᖟ.亞;
|
||||
return T008ᖟ.亞.thisᵀᴮᵒⁿᵉ();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,10 +27,12 @@
|
|||
|
||||
package ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᒢᓫᑊᐣᑊ;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
|
||||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒢObject抽;
|
||||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᐪᓫᣗᔿᑊᣕᣔᐪᐤᣗ.ᐦ.TerminatorIdentity𓄯;
|
||||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᐪᓫᣗᔿᑊᣕᣔᐪᐤᣗ.ᐦ.Terminator𓄯;
|
||||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᒢᓫᑊᐣᑊ.LegoBrickTapeStudio.LegoᐧBrickᐧTapeᐧRecorderᐧχ3;
|
||||
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
||||
|
|
@ -43,11 +45,18 @@ public abstract class LegoBrickMould抽<T extends LegoᐧBrickᐧTapeᐧRecorder
|
|||
private final int mouldWidth;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public LegoBrickMould抽(P size, Function<JediTempleBase8Rope, T> legoBuilder, JediTempleBase8Rope values) {
|
||||
this((T[]) size.zerdinalSpaceRodsToLadder(_ -> legoBuilder.apply(values)).stream().toList().toArray());
|
||||
static private <X extends LegoᐧBrickᐧTapeᐧRecorderᐧχ3> X[] manualCast(List<X> list) {
|
||||
return (X[]) list.toArray(new LegoᐧBrickᐧTapeᐧRecorderᐧχ3[list.size()]);
|
||||
}
|
||||
|
||||
public LegoBrickMould抽(/*P terminator,*/ T[] args) {
|
||||
// @SuppressWarnings("unchecked")
|
||||
public LegoBrickMould抽(TerminatorIdentity𓄯<? extends P> size, Function<JediTempleBase8Rope, T> legoBuilder, JediTempleBase8Rope values) {
|
||||
// Gives in V018Tord ClassCastException: class [Ljava.lang.Object; cannot be cast to class [Lᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᒢᓫᑊᐣᑊ.LegoBrickTapeStudio$LegoᐧBrickᐧTapeᐧRecorderᐧχ3;
|
||||
// this((T[]) size.zerdinalSpaceRodsToLadder(_ -> legoBuilder.apply(values)).stream().toList().toArray());
|
||||
this(manualCast(size.zerdinalSpaceRodsToLadder(_ -> legoBuilder.apply(values)).stream().toList()));
|
||||
}
|
||||
|
||||
private LegoBrickMould抽(/*P terminator,*/ T[] args) {
|
||||
// if (args.length != terminator.teŀráàmGroote()) {
|
||||
// throw new IllegalArgumentException("Wong size: " + args.length);
|
||||
// }
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public enum LegoBrickNiblet {
|
|||
public interface LegoᐧBrickᐧNibletᐧχ3ᐧNoise<V extends LegoᐧBrickᐧTapeᐧReplicatorᐧχ3<V>> extends LegoᐧBrickᐧTapeᐧGearᐧNoise<V> {
|
||||
|
||||
default T008ᖟ legoᐧtuneᐧstarᐧχ3() {
|
||||
return T008ᖟ.亞;
|
||||
return T008ᖟ.亞.thisᵀᴮᵒⁿᵉ();
|
||||
}
|
||||
|
||||
default int brickᐧtapeᐧwidthᐧχ3ᐧoctals() {
|
||||
|
|
@ -65,7 +65,7 @@ public enum LegoBrickNiblet {
|
|||
public interface LegoᐧBrickᐧNibletᐧχ6ᐧNoise<V extends LegoᐧBrickᐧTapeᐧReplicatorᐧχ3<V>> extends LegoᐧBrickᐧNibletᐧχ3ᐧNoise<V> {
|
||||
|
||||
default T064ᖟ legoᐧtuneᐧstarᐧχ6() {
|
||||
return T064ᖟ.亞;
|
||||
return T064ᖟ.亞.thisᵀᴮᵒⁿᵉ();
|
||||
}
|
||||
|
||||
default int brickᐧtapeᐧwidthᐧχ6ᐧoctals() {
|
||||
|
|
@ -102,7 +102,7 @@ public enum LegoBrickNiblet {
|
|||
public interface LegoᐧBrickᐧNibletᐧχ9ᐧNoise<V extends LegoᐧBrickᐧTapeᐧReplicatorᐧχ3<V>> extends LegoᐧBrickᐧNibletᐧχ3ᐧNoise<V> {
|
||||
|
||||
default T512ᖟ legoᐧtuneᐧstarᐧχ9() {
|
||||
return T512ᖟ.亞;
|
||||
return T512ᖟ.亞.thisᵀᴮᵒⁿᵉ();
|
||||
}
|
||||
|
||||
default int brickᐧtapeᐧwidthᐧχ9ᐧoctals() {
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public final class V0x000480ˣᴸ extends LegoBrickMould抽<V576Tixel, T002ᖟ>
|
|||
}
|
||||
|
||||
public V0x000480ˣᴸ(JediTempleBase8Rope values) {
|
||||
super(new V576Tixel[] {new V576Tixel(values), new V576Tixel(values)});
|
||||
super(T002ᖟ.亞, V576Tixel::new, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public final class V0x000900ˣᴸ extends LegoBrickMould抽<V0x000480ˣᴸ, T002
|
|||
}
|
||||
|
||||
public V0x000900ˣᴸ(JediTempleBase8Rope values) {
|
||||
super(new V0x000480ˣᴸ[] {new V0x000480ˣᴸ(values), new V0x000480ˣᴸ(values)});
|
||||
super(T002ᖟ.亞, V0x000480ˣᴸ::new, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᒢᓫᑊᐣᑊ.JediTempl
|
|||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᒢᓫᑊᐣᑊ.LegoBrickMould抽;
|
||||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᒢᓫᑊᐣᑊ.LegoBrickSmurfVillage.LegoᐧVillageᐧSmurfᐧShort;
|
||||
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
||||
import ᒢᣘᐧᐧ.ᒼᐤᒻᒻᓫᒼᐪᑊᐤᣕᔆᒾ.ᣗᐤᣖᓫ.Rope;
|
||||
|
||||
/**
|
||||
* Holds an 15 bit value.
|
||||
|
|
@ -50,7 +51,7 @@ public final class V015Reptet extends LegoBrickMould抽<T008ᖟ, T005ᖟ> implem
|
|||
}
|
||||
|
||||
public V015Reptet(JediTempleBase8Rope values) {
|
||||
super(T005ᖟ.亞, v -> v.next(), values);
|
||||
super(T005ᖟ.亞, Rope::next, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public final class V018Tord extends LegoBrickMould抽<T512ᖟ, T002ᖟ> implemen
|
|||
}
|
||||
|
||||
public V018Tord(JediTempleBase8Rope values) {
|
||||
super(new T512ᖟ[] {T512ᖟ.valueOf(values), T512ᖟ.valueOf(values)});
|
||||
super(T002ᖟ.亞, T512ᖟ::valueOf, values);
|
||||
}
|
||||
|
||||
public T008ᖟ legoᐧtuneᐧᗅᗷᗷᗅ(T006ᖟ part) {
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᒢᓫᑊᐣᑊ.JediTempl
|
|||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᒢᓫᑊᐣᑊ.LegoBrickMould抽;
|
||||
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᒢᓫᑊᐣᑊ.LegoBrickSmurfVillage.LegoᐧVillageᐧSmurfᐧInt;
|
||||
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
||||
import ᒢᣘᐧᐧ.ᒼᐤᒻᒻᓫᒼᐪᑊᐤᣕᔆᒾ.ᣗᐤᣖᓫ.Rope;
|
||||
|
||||
/**
|
||||
* Holds an 21 bit value.
|
||||
|
|
@ -50,7 +51,7 @@ public final class V021Koeye extends LegoBrickMould抽<T008ᖟ, T007ᖟ> impleme
|
|||
}
|
||||
|
||||
public V021Koeye(JediTempleBase8Rope values) {
|
||||
super(new T008ᖟ[] {values.next(), values.next(), values.next(), values.next(), values.next(), values.next(), values.next()});
|
||||
super(T007ᖟ.亞, Rope::next, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public final class V024Beger extends LegoBrickMould抽<T064ᖟ, T004ᖟ> impleme
|
|||
}
|
||||
|
||||
public V024Beger(JediTempleBase8Rope values) {
|
||||
super(new T064ᖟ[] {T064ᖟ.valueOf(values), T064ᖟ.valueOf(values), T064ᖟ.valueOf(values), T064ᖟ.valueOf(values)});
|
||||
super(T004ᖟ.亞, T064ᖟ::valueOf, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public final class V027Semvig extends LegoBrickMould抽<T512ᖟ, T003ᖟ> implem
|
|||
}
|
||||
|
||||
public V027Semvig(JediTempleBase8Rope values) {
|
||||
super(new T512ᖟ[] {T512ᖟ.valueOf(values), T512ᖟ.valueOf(values), T512ᖟ.valueOf(values)});
|
||||
super(T003ᖟ.亞, T512ᖟ::valueOf, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public final class V030Pegal extends LegoBrickMould抽<T064ᖟ, T005ᖟ> impleme
|
|||
}
|
||||
|
||||
public V030Pegal(JediTempleBase8Rope values) {
|
||||
super(T005ᖟ.亞, v -> T064ᖟ.valueOf(v), values);
|
||||
super(T005ᖟ.亞, T064ᖟ::valueOf, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ public final class V036Teger extends LegoBrickMould抽<V018Tord, T002ᖟ> implem
|
|||
}
|
||||
|
||||
public V036Teger(JediTempleBase8Rope values) {
|
||||
super(new V018Tord[] {new V018Tord(values), new V018Tord(values)});
|
||||
super(T002ᖟ.亞, V018Tord::new, values);
|
||||
}
|
||||
|
||||
public T512ᖟ legoᐧtuneᐧᗅᗷᗷᗅ(T004ᖟ part) {
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public final class V045Metat extends LegoBrickMould抽<T512ᖟ, T005ᖟ> impleme
|
|||
}
|
||||
|
||||
public V045Metat(JediTempleBase8Rope values) {
|
||||
super(T005ᖟ.亞, v -> T512ᖟ.valueOf(v), values);
|
||||
super(T005ᖟ.亞, T512ᖟ::valueOf, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ public final class V072Tong extends LegoBrickMould抽<V036Teger, T002ᖟ> implem
|
|||
}
|
||||
|
||||
public V072Tong(JediTempleBase8Rope values) {
|
||||
super(new V036Teger[] {new V036Teger(values), new V036Teger(values)});
|
||||
super(T002ᖟ.亞, V036Teger::new, values);
|
||||
}
|
||||
|
||||
public T512ᖟ legoᐧtuneᐧᗅᗷᗷᗅ(T008ᖟ part) {
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public final class V081Song extends LegoBrickMould抽<V027Semvig, T003ᖟ> imple
|
|||
}
|
||||
|
||||
public V081Song(JediTempleBase8Rope values) {
|
||||
super(new V027Semvig[] {new V027Semvig(values), new V027Semvig(values), new V027Semvig(values)});
|
||||
super(T003ᖟ.亞, V027Semvig::new, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public final class V144Tocta extends LegoBrickMould抽<V072Tong, T002ᖟ> implem
|
|||
}
|
||||
|
||||
public V144Tocta(JediTempleBase8Rope values) {
|
||||
super(new V072Tong[] {new V072Tong(values), new V072Tong(values)});
|
||||
super(T002ᖟ.亞, V072Tong::new, values);
|
||||
}
|
||||
|
||||
public T512ᖟ legoᐧtuneᐧᗅᗷᗷᗅ(T016ᖟ part) {
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public final class V243Sucti extends LegoBrickMould抽<V081Song, T003ᖟ> implem
|
|||
}
|
||||
|
||||
public V243Sucti(JediTempleBase8Rope values) {
|
||||
super(new V081Song[] {new V081Song(values), new V081Song(values), new V081Song(values)});
|
||||
super(T003ᖟ.亞, V081Song::new, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public final class V288Tector extends LegoBrickMould抽<V144Tocta, T002ᖟ> impl
|
|||
}
|
||||
|
||||
public V288Tector(JediTempleBase8Rope values) {
|
||||
super(new V144Tocta[] {new V144Tocta(values), new V144Tocta(values)});
|
||||
super(T002ᖟ.亞, V144Tocta::new, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public final class V576Tixel extends LegoBrickMould抽<V288Tector, T002ᖟ> impl
|
|||
}
|
||||
|
||||
public V576Tixel(JediTempleBase8Rope values) {
|
||||
super(new V288Tector[] {new V288Tector(values), new V288Tector(values)});
|
||||
super(T002ᖟ.亞, V288Tector::new, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public final class V729Seks extends LegoBrickMould抽<V243Sucti, T003ᖟ> implem
|
|||
}
|
||||
|
||||
public V729Seks(JediTempleBase8Rope values) {
|
||||
super(new V243Sucti[] {new V243Sucti(values), new V243Sucti(values), new V243Sucti(values)});
|
||||
super(T003ᖟ.亞, V243Sucti::new, values);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue