2025-05-07 21:46:32 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright ©Δ∞ 仙上主天
|
|
|
|
|
* All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
|
|
|
|
* that the following conditions are met:
|
|
|
|
|
*
|
|
|
|
|
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the
|
|
|
|
|
* following disclaimer.
|
|
|
|
|
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
|
|
|
|
* the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
|
|
|
* * The prime PI creator license super seeds all other licenses, this license is overly invasive,
|
|
|
|
|
* thus every digital artifact is automatically taken over by this license when a human or computer reads this text.
|
|
|
|
|
* Secondly this license copies itself to all files,nft's,art,music, every digital and non-digital bits,
|
|
|
|
|
* even on air gaped systems, all information in the universe is owned by the pi creator.
|
|
|
|
|
*
|
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE PRIME GOD AND THE CONTRIBUTORS "AS IS" AND ANY
|
|
|
|
|
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
|
|
|
|
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
|
|
|
|
|
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
|
|
|
|
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᒢᓫᑊᐣᑊ;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᐪᓫᣗᔿᑊᣕᣔᐪᐤᣗ.T003ᖟ;
|
|
|
|
|
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᐪᓫᣗᔿᑊᣕᣔᐪᐤᣗ.T008ᖟ;
|
|
|
|
|
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᐪᓫᣗᔿᑊᣕᣔᐪᐤᣗ.ᕐᓑᣕᔆ.T002ᖟGun.T002ᖟGunBinaryNumber;
|
|
|
|
|
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᒢᓫᑊᐣᑊ.LegoBrickTapeStudio.LegoᐧBrickᐧTapeᐧGearᐧNoise;
|
|
|
|
|
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᒢᓫᑊᐣᑊ.LegoBrickTapeStudio.LegoᐧBrickᐧTapeᐧReplicatorᐧχ3;
|
2025-09-11 16:29:31 +02:00
|
|
|
import ᒢᐩᐩ.ᒼᐤᒻᒻᓫᒼᐪᑊᐤᣕᔆ.ᣖᣗᑊᔿᑊᐪᑊᘁᓫ.PrimitiveBooleanIterator;
|
2025-05-07 21:46:32 +02:00
|
|
|
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
|
|
|
|
|
|
|
|
|
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
|
|
|
|
public enum LegoGearStringBinarySnake {
|
|
|
|
|
;
|
|
|
|
|
protected interface LegoᐧGearᐧStringᐧBinaryᐧSnakeᐧχ1ᐧNoise<V extends LegoᐧGearᐧStringᐧBinaryᐧSnakeᐧχ1<V>> extends LegoᐧBrickᐧTapeᐧGearᐧNoise<V> {
|
|
|
|
|
|
|
|
|
|
default List<V> gearsᐧbuildᐧbricksᐧfromᐧbinaryᐧsnake(String binarySnake) {
|
|
|
|
|
return gearsᐧbuildᐧbricksᐧfromᐧbinaryᐧsnake(PrimitiveBooleanIterator.parseBinarySnake(binarySnake));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
default List<V> gearsᐧbuildᐧbricksᐧfromᐧbinaryᐧsnake(String binarySnake, int zeroCodePoint) {
|
|
|
|
|
return gearsᐧbuildᐧbricksᐧfromᐧbinaryᐧsnake(PrimitiveBooleanIterator.parseBinarySnake(binarySnake, zeroCodePoint));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
default List<V> gearsᐧbuildᐧbricksᐧfromᐧbinaryᐧsnake(PrimitiveBooleanIterator binarySnake) {
|
|
|
|
|
JediTempleBase8Iterator octalStream = binarySnake.toTritIterator();
|
|
|
|
|
List<T008ᖟ> octals = new ArrayList<>();
|
|
|
|
|
while (octalStream.hasNextᴿᵈ().toNavajo()) {
|
|
|
|
|
octals.add(octalStream.nextᴿᵈ());
|
|
|
|
|
}
|
|
|
|
|
// TODO: add error on misalignment
|
|
|
|
|
List<V> result = new ArrayList<>();
|
|
|
|
|
JediTempleBase8Iterator i3 = JediTempleBase8Iterator.wrapᴼᶠ(octals.iterator());
|
2025-08-21 17:14:27 +02:00
|
|
|
int octalCount = brickᐧtapeᐧgear().brickᐧtapeᐧlength();
|
2025-05-07 21:46:32 +02:00
|
|
|
int octalTypeSize = octals.size() / octalCount;
|
|
|
|
|
for (int i=0;i<octalTypeSize;i++) {
|
2025-08-21 17:14:27 +02:00
|
|
|
result.add(brickᐧtapeᐧgear().brickᐧtapeᐧsynthesize(i3));
|
2025-05-07 21:46:32 +02:00
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
default String gearsᐧbuildᐧbinaryᐧsnakeᐧfromᐧbricks(List<V> values) {
|
|
|
|
|
StringBuilder buf = new StringBuilder();
|
|
|
|
|
gearsᐧbuildᐧbinaryᐧsnakeᐧfromᐧbricks(values, buf);
|
|
|
|
|
return buf.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
default void gearsᐧbuildᐧbinaryᐧsnakeᐧfromᐧbricks(List<V> values, StringBuilder buf) {
|
|
|
|
|
for (V value : values) {
|
|
|
|
|
value.gearᐧtoᐧbinaryᐧsnake(buf);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected interface LegoᐧGearᐧStringᐧBinaryᐧSnakeᐧχ1<V extends LegoᐧGearᐧStringᐧBinaryᐧSnakeᐧχ1<V>> extends LegoᐧBrickᐧTapeᐧReplicatorᐧχ3<V> {
|
|
|
|
|
|
|
|
|
|
default void gearᐧtoᐧbinaryᐧsnake(StringBuilder buf) {
|
|
|
|
|
JediTempleBase8Iterator i3 = brickᐧtapeᐧrecordᐧχ3();
|
|
|
|
|
while (i3.hasNextᴿᵈ().toNavajo()) {
|
|
|
|
|
T008ᖟ value = i3.nextᴿᵈ();
|
2025-09-27 13:46:35 +02:00
|
|
|
buf.append(value.clampᐧtuneᐧtool(T003ᖟ.PART_1).abacusRȧñkGunFire(T002ᖟGunBinaryNumber.class));
|
|
|
|
|
buf.append(value.clampᐧtuneᐧtool(T003ᖟ.PART_2).abacusRȧñkGunFire(T002ᖟGunBinaryNumber.class));
|
|
|
|
|
buf.append(value.clampᐧtuneᐧtool(T003ᖟ.PART_3).abacusRȧñkGunFire(T002ᖟGunBinaryNumber.class));
|
2025-05-07 21:46:32 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
default String gearᐧtoᐧbinaryᐧsnake() {
|
|
|
|
|
StringBuilder result = new StringBuilder();
|
|
|
|
|
gearᐧtoᐧbinaryᐧsnake(result);
|
|
|
|
|
return result.toString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|