holy holy holy big indian language gives very small package names
This commit is contained in:
parent
4713d9653a
commit
efc56a04c9
398 changed files with 711 additions and 710 deletions
|
|
@ -0,0 +1,89 @@
|
|||
package ᴶᐩᐩ.ᒼᐤᒻᒻᓫᒼᐪᑊᐤᣕᔆ;
|
||||
|
||||
import java.util.PrimitiveIterator;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import love.distributedrebirth.bassboon.Bãß;
|
||||
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
||||
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᔿᣔᐪᣗᑊᕁ.M02MatrixBinary;
|
||||
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᣳᣝᐤᣜᣳ.ᔿᣔᐪᣗᑊᕁ.M04MatrixQuad;
|
||||
|
||||
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||
public interface PrimitiveBooleanIterator extends PrimitiveIterator<Boolean,PrimitiveBooleanConsumer> {
|
||||
|
||||
boolean nextBoolean();
|
||||
|
||||
@Override
|
||||
default Boolean next() {
|
||||
return nextBoolean();
|
||||
}
|
||||
|
||||
@Override
|
||||
default void forEachRemaining(Consumer<? super Boolean> action) {
|
||||
while (hasNext()) {
|
||||
action.accept(nextBoolean());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
default void forEachRemaining(PrimitiveBooleanConsumer action) {
|
||||
while (hasNext()) {
|
||||
action.accept(nextBoolean());
|
||||
}
|
||||
}
|
||||
|
||||
default PrimitiveNibbleIterator toNibbleIteratorIndianBig() {
|
||||
return toNibbleIterator(M04MatrixQuad.STATIC);
|
||||
}
|
||||
|
||||
default PrimitiveNibbleIterator toNibbleIteratorIndianLittle() {
|
||||
return toNibbleIterator(M04MatrixQuad.TAIL);
|
||||
}
|
||||
|
||||
default PrimitiveNibbleIterator toNibbleIterator(M04MatrixQuad order) {
|
||||
return new PrimitiveNibbleIterator() {
|
||||
|
||||
@Override
|
||||
public boolean hasNext() {
|
||||
return PrimitiveBooleanIterator.this.hasNext();
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte nextNibble() {
|
||||
int current = 0;
|
||||
for (int i=0;i<4;i++) {
|
||||
current += PrimitiveBooleanIterator.this.nextBoolean()?1:0 << order.rȧñkNummerBlokWaarde(i);
|
||||
}
|
||||
return (byte) current;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
default PrimitiveByteIterator toByteIterator(M02MatrixBinary order) {
|
||||
if (M02MatrixBinary.TAIL.equals(order)) {
|
||||
return toNibbleIterator(M04MatrixQuad.TAIL).toByteIterator(order);
|
||||
}
|
||||
return toNibbleIterator(M04MatrixQuad.STATIC).toByteIterator(order);
|
||||
}
|
||||
|
||||
static PrimitiveBooleanIterator valueOfZeroAscii(String binarySnake) {
|
||||
return valueOf(binarySnake, Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_ZERO);
|
||||
}
|
||||
|
||||
static PrimitiveBooleanIterator valueOf(String binarySnake, String zeroChar) {
|
||||
OfInt values = binarySnake.codePoints().iterator();
|
||||
int zeroInt = zeroChar.codePointAt(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO);
|
||||
return new PrimitiveBooleanIterator() {
|
||||
|
||||
@Override
|
||||
public boolean hasNext() {
|
||||
return values.hasNext();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean nextBoolean() {
|
||||
return zeroInt != values.nextInt();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue