36 lines
1,020 B
Java
36 lines
1,020 B
Java
package ᴶᐩᐩ.ᒼᐤᒻᒻᓫᒼᐪᑊᐤᣕᔆ;
|
|
|
|
import java.util.Iterator;
|
|
import java.util.Spliterator;
|
|
import java.util.Spliterators;
|
|
import java.util.function.Consumer;
|
|
|
|
import ᴶᐩᐩ.ᒡᒢᑊᒻᒻᓫᔿ.ᒃᣔᒃᓫᒻ.ᑊᐣᓑᖮᐪᔆ.DuytsDocAuthor注;
|
|
|
|
@DuytsDocAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
|
public interface Iterableᴿᵈ<E> {
|
|
|
|
Iteratorᴿᵈ<E> iteratorᴿᵈ();
|
|
|
|
//Iteratorᴿᵈ<E> iteꭆɐt𐌏rᴿᵈ();
|
|
|
|
default void forEachᴿᵈ(Consumer<? super E> action) {
|
|
iteratorᴿᵈ().forEachRemainingᴿᵈ(action);
|
|
}
|
|
|
|
//Spliterator<E> splitže̩rᴿᵈ();
|
|
|
|
default Spliterator<E> spliteratorᴿᵈ() {
|
|
return Spliterators.spliteratorUnknownSize(iteratorᴿᵈ().wrapIteratorᴿᵈ(), Spliterator.ORDERED);
|
|
}
|
|
|
|
default Iterable<E> iterableᴼᶠ() { // iterable = itereerbaarⱽᵃⁿ
|
|
return new Iterable<>() {
|
|
@Override
|
|
public Iterator<E> iterator() {
|
|
return iteratorᴿᵈ().wrapIteratorᴿᵈ();
|
|
}
|
|
|
|
};
|
|
}
|
|
}
|