Package de.julielab.java.utilities
Class JavaStreamUtilities
- java.lang.Object
-
- de.julielab.java.utilities.JavaStreamUtilities
-
public class JavaStreamUtilities extends Object
-
-
Constructor Summary
Constructors Constructor Description JavaStreamUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T,E>
Predicate<T>equalsFirstSeenValue(Function<T,E> valueFunction)A predicate that tests true for all values that equal the first value it saw.
-
-
-
Method Detail
-
equalsFirstSeenValue
public static <T,E> Predicate<T> equalsFirstSeenValue(Function<T,E> valueFunction)
A predicate that tests true for all values that equal the first value it saw.- Type Parameters:
T- The input type.E- The value type for comparison.- Parameters:
valueFunction- A function to retrieve the value.- Returns:
- The predicate.
-
-