Package net.kyori.adventure.util
Class ForwardingIterator<T>
- java.lang.Object
-
- net.kyori.adventure.util.ForwardingIterator<T>
-
- Type Parameters:
T
- the type of the iterable
- All Implemented Interfaces:
java.lang.Iterable<T>
public final class ForwardingIterator<T> extends java.lang.Object implements java.lang.Iterable<T>
- Since:
- 4.9.0
-
-
Constructor Summary
Constructors Constructor Description ForwardingIterator(@NotNull java.util.function.Supplier<java.util.Iterator<T>> iterator, @NotNull java.util.function.Supplier<java.util.Spliterator<T>> spliterator)
Creates a new forwarding iterable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.util.Iterator<T>
iterator()
@NotNull java.util.Spliterator<T>
spliterator()
-
-
-
Constructor Detail
-
ForwardingIterator
public ForwardingIterator(@NotNull @NotNull java.util.function.Supplier<java.util.Iterator<T>> iterator, @NotNull @NotNull java.util.function.Supplier<java.util.Spliterator<T>> spliterator)
Creates a new forwarding iterable.- Parameters:
iterator
- the iterator supplierspliterator
- the spliterator supplier- Since:
- 4.9.0
-
-