docs(commons): link Stream
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
Johannes Frohnmeyer 2024-05-04 22:54:18 +02:00
parent 5801716336
commit ea4dbd616a
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 2 additions and 1 deletions

View File

@ -2,11 +2,12 @@ package io.gitlab.jfronny.commons;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.stream.Stream;
public class StreamUtil {
/**
* A BiConsumer that keeps only elements of the specified type.
* To be used with Stream.mapMulti.
* To be used with {@link Stream}.mapMulti.
*
* @param type The type to keep
* @param <E> The type of the elements