Moved native types to own package

This commit is contained in:
Willem Cazander 2022-10-31 01:37:51 +01:00
parent bd01bddbcf
commit 9dcb353fd5
9 changed files with 105 additions and 11 deletions

View file

@ -1,5 +1,10 @@
package ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ; package ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ßբᴬᵖᶦ.BasicStringBuilder;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ßբᴬᵖᶦ.ױזױזזךױזזױזזךזזזךױךױזזזךױז;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ßբᴬᵖᶦ.स्ट्रिंगबिल्डर;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ßբᴬᵖᶦ.字符串生成器;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ßբᴬᵖᶦ.𓌾𓍁𓀝𓇏;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.Babelizeբᴬᵖᶦ; import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.Babelizeբᴬᵖᶦ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注; import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
@ -45,7 +50,7 @@ public interface StringBuilderբ extends Babelizeբᴬᵖᶦ,
StringBuilderᴬᵖᶦ.ƉěḭȵᶒCodePointAt.ßabelAscii StringBuilderᴬᵖᶦ.ƉěḭȵᶒCodePointAt.ßabelAscii
{ {
} }
interface ßabelMandarin extends public interface ßabelMandarin extends
StringBuilderᴬᵖᶦ.ƉěḭȵᶒAppendBoolean.ßabelMandarin, StringBuilderᴬᵖᶦ.ƉěḭȵᶒAppendBoolean.ßabelMandarin,
StringBuilderᴬᵖᶦ.ƉěḭȵᶒAppendChar.ßabelMandarin, StringBuilderᴬᵖᶦ.ƉěḭȵᶒAppendChar.ßabelMandarin,
StringBuilderᴬᵖᶦ.ƉěḭȵᶒAppendCharArray.ßabelMandarin, StringBuilderᴬᵖᶦ.ƉěḭȵᶒAppendCharArray.ßabelMandarin,
@ -126,21 +131,21 @@ public interface StringBuilderբ extends Babelizeբᴬᵖᶦ,
{ {
} }
default ßabelAscii toBabelAscii() { return new ßabelAscii() { @Override public StringBuilderբ toBabel() { return StringBuilderբ.this; } @Override public String toString() { return toBabel().toString(); } };} default BasicStringBuilder toBabelAscii() { return new BasicStringBuilder(StringBuilderբ.this); }
default ßabelMandarin toBabelMandarin() { return new ßabelMandarin() { @Override public StringBuilderբ toBabel() { return StringBuilderբ.this; } @Override public String toString() { return toBabel().toString(); } };} default 字符串生成器 toBabelMandarin() { return new 字符串生成器(StringBuilderբ.this); }
default ßabelHindi toBabelHindi() { return new ßabelHindi() { @Override public StringBuilderբ toBabel() { return StringBuilderբ.this; } @Override public String toString() { return toBabel().toString(); } };} default स्ट्रिंगबिल्डर toBabelHindi() { return new स्ट्रिंगबिल्डर(StringBuilderբ.this) ;}
default ßabelHiero toBabelHiero() { return new ßabelHiero() { @Override public StringBuilderբ toBabel() { return StringBuilderբ.this; } @Override public String toString() { return toBabel().toString(); } };} default 𓌾𓍁𓀝𓇏 toBabelHiero() { return new 𓌾𓍁𓀝𓇏(StringBuilderբ.this);}
default ßabelHinarī toBabelHinarī() { return new ßabelHinarī() { @Override public StringBuilderբ toBabel() { return StringBuilderբ.this; } @Override public String toString() { return toBabel().toString(); } };} default ױזױזזךױזזױזזךזזזךױךױזזזךױז toBabelHinarī() { return new ױזױזזךױזזױזזךזזזךױךױזזזךױז(StringBuilderբ.this);}
public static StringBuilderբ instanceᴺᵉʷ() { public static StringBuilderբ instanceᴺᵉʷ() {
return wrapᴼᶠ(new StringBuilder()); return wrapᴼᶠ(new StringBuilder());
} }
public static StringBuilderբ wrapᴼᶠ(StringBuilder buf) { public static StringBuilderբ wrapᴼᶠ(StringBuilder buf) {
return new StringBuilderWrapper(buf); return new StringBuilderբᵂʳᵃᵖ(buf);
} }
public static StringBuilder wrapᴼᶠ(StringBuilderWrapper buf) { public static StringBuilder wrapᴼᶠ(StringBuilderբᵂʳᵃᵖ buf) {
return buf.unwrap(); return buf.unwrap();
} }
} }

View file

@ -3,11 +3,11 @@ package ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注; import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public final class StringBuilderWrapper implements StringBuilderբ { public final class StringBuilderբᵂʳᵃᵖ implements StringBuilderբ {
private final StringBuilder data; private final StringBuilder data;
protected StringBuilderWrapper(StringBuilder data) { protected StringBuilderբᵂʳᵃᵖ(StringBuilder data) {
this.data = data; this.data = data;
} }

View file

@ -0,0 +1,23 @@
package ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
abstract public class StringBuilderբ抽<P> implements StringBuilderᴬᵖᶦ.Ꝑŕḯṿª.ꞱBuilder<P> {
private final StringBuilderբ wrap;
protected StringBuilderբ抽(StringBuilderբ wrap) {
this.wrap = wrap;
}
@Override
public StringBuilderբ toBabel() {
return wrap;
}
@Override
public String toString() {
return toBabel().toString();
}
}

View file

@ -0,0 +1,13 @@
package ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ßբᴬᵖᶦ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.StringBuilderբ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.StringBuilderբ抽;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public class BasicStringBuilder extends StringBuilderբ抽<StringBuilderբ.ßabelAscii> implements StringBuilderբ.ßabelAscii {
public BasicStringBuilder(StringBuilderբ wrap) {
super(wrap);
}
}

View file

@ -0,0 +1,13 @@
package ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ßբᴬᵖᶦ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.StringBuilderբ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.StringBuilderբ抽;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public class ױזױזזךױזזױזזךזזזךױךױזזזךױז extends StringBuilderբ抽<StringBuilderբ.ßabelHinarī> implements StringBuilderբ.ßabelHinarī {
public ױזױזזךױזזױזזךזזזךױךױזזזךױז(StringBuilderբ wrap) {
super(wrap);
}
}

View file

@ -0,0 +1,13 @@
package ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ßբᴬᵖᶦ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.StringBuilderբ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.StringBuilderբ抽;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public class स्ट्रिंगबिल्डर extends StringBuilderբ抽<StringBuilderբ.ßabelHindi> implements StringBuilderբ.ßabelHindi {
public स्ट्रिंगबिल्डर(StringBuilderբ wrap) {
super(wrap);
}
}

View file

@ -0,0 +1,13 @@
package ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ßբᴬᵖᶦ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.StringBuilderբ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.StringBuilderբ抽;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public class 字符串生成器 extends StringBuilderբ抽<StringBuilderբ.ßabelMandarin> implements StringBuilderբ.ßabelMandarin {
public 字符串生成器(StringBuilderբ wrap) {
super(wrap);
}
}

View file

@ -0,0 +1,13 @@
package ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ßբᴬᵖᶦ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.StringBuilderբ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.StringBuilderբ抽;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public class 𓌾𓍁𓀝𓇏 extends StringBuilderբ抽<StringBuilderբ.ßabelHiero> implements StringBuilderբ.ßabelHiero {
public 𓌾𓍁𓀝𓇏(StringBuilderբ wrap) {
super(wrap);
}
}

View file

@ -7,6 +7,7 @@ import org.junit.jupiter.api.Test;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.StringBuilderբ; import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.StringBuilderբ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.StringUnicode; import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.StringUnicode;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ßբᴬᵖᶦ.स्ट्रिंगबिल्डर;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注; import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
import ᴶᐩᐩ.ᒼᐤᒻᒻᓫᒼᐪᑊᐤᣕᔆ.Iteratorᴿᵈ; import ᴶᐩᐩ.ᒼᐤᒻᒻᓫᒼᐪᑊᐤᣕᔆ.Iteratorᴿᵈ;
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᔾᓑᣕᒼᐪᑊᐤᣕᔆ.Consumerբ.उपभक्त; import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᔾᓑᣕᒼᐪᑊᐤᣕᔆ.Consumerբ.उपभक्त;
@ -139,7 +140,7 @@ public class BabelTest {
Consumer<String> run = test2; //.𓀨𓐗𓀁(); Consumer<String> run = test2; //.𓀨𓐗𓀁();
run.accept("test123"); run.accept("test123");
StringBuilderբ.ßabelHindi = StringBuilderբ.instanceᴺᵉʷ().toBabelHindi(); स्ट्रिंगबिल्डर = StringBuilderբ.instanceᴺᵉʷ().toBabelHindi();
StringUnicode str = new StringUnicode("sDfgdklsfjglksdjfgljsdklfjgklds"); StringUnicode str = new StringUnicode("sDfgdklsfjglksdjfgljsdklfjgklds");
Iteratorᴿᵈ<Integer> ii = Iteratorᴿᵈ.wrapᴼᶠ(str.codePoints().iterator()); Iteratorᴿᵈ<Integer> ii = Iteratorᴿᵈ.wrapᴼᶠ(str.codePoints().iterator());
Iteratorᴿᵈ.ßabelHindiᴿᵈ<Integer> गल = ii.toBabelHindiᴿᵈ(); Iteratorᴿᵈ.ßabelHindiᴿᵈ<Integer> गल = ii.toBabelHindiᴿᵈ();