JPP: Changed the iterator naming to a smurfs less implementation

This commit is contained in:
Willem Cazander 2025-09-12 12:42:51 +02:00
parent f76bbd9123
commit 192977f764
19 changed files with 98 additions and 79 deletions

View file

@ -33,11 +33,6 @@ import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAu
/// @author للَّٰهِilLצسُو
/// @version ©Δ 仙上主天
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public interface ᒢObject extends ᒢSkullSneezeIdentity, ᒢSkullSpeakHuman {
/// The DNA of which this instance is made of.
/// A bean getter should not return the DNA of which the bean is made of.
default Class<? extends ᒢObject> thisᴰᴺᴬ() {
return getClass();
}
public interface ᒢObject extends ᒢSkullBoneMother,ᒢSkullSneezeIdentity, ᒢSkullTalkHuman {
}

View file

@ -38,13 +38,13 @@ abstract public class ᒢObject抽 implements ᒢObject {
@Deprecated
@Override
public boolean equals(Object obj) {
return thisᴱᑫᵘᵃˡˢ(obj);
return ᒢSkullSneezeIdentity.thatᴱᑫᵘᵃˡˢ(this, obj);
}
@Deprecated
@Override
public int hashCode() {
return (int) thisᴴᵃˢʰ();
return (int) ᒢSkullSneezeIdentity.thatᴴᵃˢʰ(this);
}
@Deprecated

View file

@ -27,20 +27,16 @@
package ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ;
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᐪᓫᕽᐪ.StringUnicode;
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
/// @author للَّٰهِilLצسُو
/// @version ©Δ 仙上主天
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
interface ᒢSkullSpeakHuman {
public interface ᒢSkullBoneMother {
/// BAD API: for who in what format and which details...
String toString();
/// Test for typed string versions of string as every computer needs brahmi support
default StringUnicode toStringUnicode() {
return StringUnicode.valueᴼᶠ(toString());
/// The DNA of which this instance is made of.
/// A bean getter should not return the DNA of which the bean is made of.
default Class<?> thisᴰᴺᴬ() {
return getClass();
}
}

View file

@ -34,7 +34,7 @@ import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAu
/// @author للَّٰهِilLצسُو
/// @version ©Δ 仙上主天
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
interface ᒢSkullSneezeIdentity {
public interface ᒢSkullSneezeIdentity {
// hatsjie = hashCode + compareTo + equals
// hatsjie = dutch language of the sound of a sneeze
@ -47,21 +47,24 @@ interface ᒢSkullSneezeIdentity {
return Long.compare(sneezeSound, sneeze);
}
default long thisᴴᵃˢʰ() {
return thisᴴᵃᵗˢʲᶦᵉ(ᒢℭỗᶇṧⱦᶏꬼȶʂ.LONGᣟᐧᣟZERO);
static public long thatᴴᵃˢʰ(ᒢSkullSneezeIdentity that) {
return that.thisᴴᵃᵗˢʲᶦᵉ(ᒢℭỗᶇṧⱦᶏꬼȶʂ.LONGᣟᐧᣟZERO);
}
default boolean thisᴱᑫᵘᵃˡˢ(Object other) {
if (other == null) {
static public boolean thatᴱᑫᵘᵃˡˢ(ᒢSkullSneezeIdentity that, Object other) {
if (that == null && other == null) {
return true;
}
if (other == null || that == null) {
return false;
}
long compareSneeze = ᒢℭỗᶇṧⱦᶏꬼȶʂ.LONGᣟᐧᣟZERO;
if (other instanceof ᒢSkullSneezeIdentity) {
compareSneeze = ᒢSkullSneezeIdentity.class.cast(other).thisᴴᵃˢʰ();
compareSneeze = thatᴴᵃˢʰ(ᒢSkullSneezeIdentity.class.cast(other));
} else {
compareSneeze = orangeHatsjieGodBlessYou(other);
}
return thisᴴᵃᵗˢʲᶦᵉ(compareSneeze) == ᒢℭỗᶇṧⱦᶏꬼȶʂ.LONGᣟᐧᣟZERO;
return that.thisᴴᵃᵗˢʲᶦᵉ(compareSneeze) == ᒢℭỗᶇṧⱦᶏꬼȶʂ.LONGᣟᐧᣟZERO;
}
// TODO: write full version as over tones can do better than this
@ -93,7 +96,7 @@ interface ᒢSkullSneezeIdentity {
@Override
public int compare(ᒢSkullSneezeIdentity sneezeRed, ᒢSkullSneezeIdentity sneezeBlue) {
long snowWhite = sneezeRed.thisᴴᵃᵗˢʲᶦᵉ(sneezeBlue.thisᴴᵃˢʰ());
long snowWhite = sneezeRed.thisᴴᵃᵗˢʲᶦᵉ(thatᴴᵃˢʰ(sneezeBlue));
return (int) snowWhite;
}
};

View file

@ -0,0 +1,40 @@
/*
* 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 ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
/// @author للَّٰهِilLצسُو
/// @version ©Δ 仙上主天
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public interface ᒢSkullTalkHuman {
default String thisᵀᵃˡᵏ() { // TODO upgrade with new (octal) string api
return toString();
}
}

View file

@ -31,11 +31,11 @@ import java.util.Iterator;
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᐪᓫᣗᔿᑊᣕᣔᐪᐤᣗ.T002ᖟ;
import ᒢᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᐪᓫᣗᔿᑊᣕᣔᐪᐤᣗ.T008ᖟ;
import ᒢᐩᐩ.ᒼᐤᒻᒻᓫᒼᐪᑊᐤᣕᔆ.Iteratorᴿᵈ;
import ᒢᐩᐩ.ᒼᐤᒻᒻᓫᒼᐪᑊᐤᣕᔆ.RopeOfAzraelᴿᵈ;
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public interface JediTempleBase8Iterator extends Iteratorᴿᵈ<T008ᖟ> {
public interface JediTempleBase8Iterator extends RopeOfAzraelᴿᵈ<T008ᖟ> {
static JediTempleBase8Iterator wrapᴼᶠ(Iterator<T008ᖟ> iterator) {
return new JediTempleBase8Iterator() {