2022-10-30 23:14:53 +01:00
|
|
|
package ᴶᐩᐩ.ᒼᐤᒻᒻᓫᒼᐪᑊᐤᣕᔆ;
|
2022-10-24 07:28:15 +02:00
|
|
|
|
2022-10-24 10:12:39 +02:00
|
|
|
import java.util.Iterator;
|
2022-10-24 07:28:15 +02:00
|
|
|
import java.util.Spliterator;
|
|
|
|
|
import java.util.Spliterators;
|
|
|
|
|
import java.util.function.Consumer;
|
|
|
|
|
|
2022-10-30 23:14:53 +01:00
|
|
|
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
2022-10-24 07:28:15 +02:00
|
|
|
|
2022-10-30 16:59:24 +01:00
|
|
|
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
2022-10-30 08:26:14 +01:00
|
|
|
public interface Iterableᴿᵈ<E> {
|
2022-10-24 07:28:15 +02:00
|
|
|
|
|
|
|
|
Iteratorᴿᵈ<E> iteratorᴿᵈ();
|
|
|
|
|
|
2022-10-30 08:26:14 +01:00
|
|
|
//Iteratorᴿᵈ<E> iteꭆɐt𐌏rᴿᵈ();
|
|
|
|
|
|
2022-10-24 07:28:15 +02:00
|
|
|
default void forEachᴿᵈ(Consumer<? super E> action) {
|
|
|
|
|
iteratorᴿᵈ().forEachRemainingᴿᵈ(action);
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-30 08:26:14 +01:00
|
|
|
//Spliterator<E> splitže̩rᴿᵈ();
|
|
|
|
|
|
2022-10-24 07:28:15 +02:00
|
|
|
default Spliterator<E> spliteratorᴿᵈ() {
|
2022-10-30 08:26:14 +01:00
|
|
|
return Spliterators.spliteratorUnknownSize(iteratorᴿᵈ().wrapIteratorᴿᵈ(), Spliterator.ORDERED);
|
2022-10-24 07:28:15 +02:00
|
|
|
}
|
2022-10-24 10:12:39 +02:00
|
|
|
|
2022-10-30 08:26:14 +01:00
|
|
|
default Iterable<E> iterableᴼᶠ() { // iterable = itereerbaarⱽᵃⁿ
|
2022-10-24 10:12:39 +02:00
|
|
|
return new Iterable<>() {
|
|
|
|
|
@Override
|
|
|
|
|
public Iterator<E> iterator() {
|
2022-10-30 08:26:14 +01:00
|
|
|
return iteratorᴿᵈ().wrapIteratorᴿᵈ();
|
2022-10-24 10:12:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
}
|
2022-10-24 07:28:15 +02:00
|
|
|
}
|