public interface MaridIterators
-
Method Summary
Static Methods Modifier and Type Method Description static <E> voidforEach(@NotNull Iterable<E> iterable, @NotNull BiConsumer<Boolean,E> consumer)static <E> @NotNull Iterable<E>iterable(@NotNull Supplier<@NotNull Iterator<E>> iteratorSupplier)static <E> @NotNull Iterable<E>iterable(@NotNull Iterator<E> iterator)static <E> @NotNull Iterator<E>iterator(@NotNull BooleanSupplier hasNext, @NotNull Supplier<E> next)static @NotNull Iterator<String>lineIterator(@NotNull Scanner scanner)static <E> Stream<E>stream(@NotNull Iterable<E> iterable)
-
Method Details
-
iterator
@NotNull static <E> @NotNull Iterator<E> iterator(@NotNull @NotNull BooleanSupplier hasNext, @NotNull @NotNull Supplier<E> next) -
stream
-
lineIterator
-
forEach
static <E> void forEach(@NotNull @NotNull Iterable<E> iterable, @NotNull @NotNull BiConsumer<Boolean,E> consumer) -
iterable
-
iterable
-