2022-10-31 04:39:32 +01:00
|
|
|
package ᒢᐩᐩ.ᒼᐤᒻᒻᓫᒼᐪᑊᐤᣕᔆ;
|
2022-10-23 03:04:55 +02:00
|
|
|
|
2022-10-24 07:28:15 +02:00
|
|
|
import java.util.Iterator;
|
|
|
|
|
|
2022-11-05 13:41:48 +01:00
|
|
|
import ᒢᐩᐩ.ᔆʸᔆᐪᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
2022-10-23 03:04:55 +02:00
|
|
|
|
2022-10-30 16:59:24 +01:00
|
|
|
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
2022-10-30 08:26:14 +01:00
|
|
|
public interface Iteratorᵂʳ<E> extends Iteratorᴿᵈ<E>,
|
|
|
|
|
Iteratorᴬᵖᶦ.ƉěꬵḭȵᶒRemoveᵂʳ.ßabel<E> {
|
|
|
|
|
|
|
|
|
|
interface ßabelAsciiᵂʳ<E> extends Iteratorᴿᵈ.ßabelAsciiᴿᵈ<E>,
|
|
|
|
|
Iteratorᴬᵖᶦ.ƉěꬵḭȵᶒRemoveᵂʳ.ßabelAscii<E> {
|
|
|
|
|
}
|
|
|
|
|
interface ßabelMandarinᵂʳ<E> extends Iteratorᴿᵈ.ßabelMandarinᴿᵈ<E>,
|
|
|
|
|
Iteratorᴬᵖᶦ.ƉěꬵḭȵᶒRemoveᵂʳ.ßabelMandarin<E> {
|
|
|
|
|
}
|
|
|
|
|
interface ßabelHindiᵂʳ<E> extends Iteratorᴿᵈ.ßabelHindiᴿᵈ<E>,
|
|
|
|
|
Iteratorᴬᵖᶦ.ƉěꬵḭȵᶒRemoveᵂʳ.ßabelHindi<E> {
|
|
|
|
|
}
|
|
|
|
|
interface ßabelHieroᵂʳ<E> extends Iteratorᴿᵈ.ßabelHieroᴿᵈ<E>,
|
|
|
|
|
Iteratorᴬᵖᶦ.ƉěꬵḭȵᶒRemoveᵂʳ.ßabelHiero<E> {
|
2022-10-24 07:28:15 +02:00
|
|
|
}
|
2022-10-30 08:26:14 +01:00
|
|
|
interface ßabelHinarīᵂʳ<E> extends Iteratorᴿᵈ.ßabelHinarīᴿᵈ<E>,
|
|
|
|
|
Iteratorᴬᵖᶦ.ƉěꬵḭȵᶒRemoveᵂʳ.ßabelHinarī<E> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
default ßabelAsciiᵂʳ<E> toBabelAsciiᵂʳ() { return new ßabelAsciiᵂʳ<>() { @Override public Iteratorᵂʳ<E> toBabelᵂʳ() { return Iteratorᵂʳ.this.toBabelᵂʳ(); }};}
|
|
|
|
|
default ßabelMandarinᵂʳ<E> toBabelMandarinᵂʳ() { return new ßabelMandarinᵂʳ<>() { @Override public Iteratorᵂʳ<E> toBabelᵂʳ() { return Iteratorᵂʳ.this.toBabelᵂʳ(); }};}
|
|
|
|
|
default ßabelHindiᵂʳ<E> toBabelHindiᵂʳ() { return new ßabelHindiᵂʳ<>() { @Override public Iteratorᵂʳ<E> toBabelᵂʳ() { return Iteratorᵂʳ.this.toBabelᵂʳ(); }};}
|
|
|
|
|
default ßabelHieroᵂʳ<E> toBabelHieroᵂʳ() { return new ßabelHieroᵂʳ<>() { @Override public Iteratorᵂʳ<E> toBabelᵂʳ() { return Iteratorᵂʳ.this.toBabelᵂʳ(); }};}
|
|
|
|
|
default ßabelHinarīᵂʳ<E> toBabelHinarīᵂʳ() { return new ßabelHinarīᵂʳ<>() { @Override public Iteratorᵂʳ<E> toBabelᵂʳ() { return Iteratorᵂʳ.this.toBabelᵂʳ(); }};}
|
2022-10-24 07:28:15 +02:00
|
|
|
|
2022-10-30 08:26:14 +01:00
|
|
|
default Iterator<E> wrapIteratorᵂʳ() {
|
|
|
|
|
return Iteratorᵂʳ.wrapᴼᶠ(toBabelᵂʳ());
|
2022-10-24 07:28:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static <T> Iterator<T> wrapᴼᶠ(Iteratorᵂʳ<T> iterator) {
|
|
|
|
|
return new Iterator<>() {
|
|
|
|
|
@Override
|
|
|
|
|
public boolean hasNext() {
|
2022-10-30 08:26:14 +01:00
|
|
|
return iterator.hatNächsteᴿᵈ();
|
2022-10-24 07:28:15 +02:00
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public T next() {
|
|
|
|
|
return iterator.nextᴿᵈ();
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public void remove() {
|
|
|
|
|
iterator.removeᵂʳ();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static <T> Iteratorᵂʳ<T> wrapᴼᶠ(Iterator<T> iterator) {
|
|
|
|
|
return new Iteratorᵂʳ<>() {
|
|
|
|
|
@Override
|
2022-10-30 08:26:14 +01:00
|
|
|
public boolean hatNächsteᴿᵈ() {
|
2022-10-24 07:28:15 +02:00
|
|
|
return iterator.hasNext();
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public T nextᴿᵈ() {
|
|
|
|
|
return iterator.next();
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public void removeᵂʳ() {
|
|
|
|
|
iterator.remove();
|
|
|
|
|
}
|
2022-10-30 08:26:14 +01:00
|
|
|
@Override
|
|
|
|
|
public Iteratorᵂʳ<T> toBabelᵂʳ() {
|
|
|
|
|
return this;
|
|
|
|
|
}
|
2022-10-24 07:28:15 +02:00
|
|
|
};
|
2022-10-23 03:04:55 +02:00
|
|
|
}
|
|
|
|
|
}
|