| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
concurrentDistinct()
Returns a stateful
Predicate. |
static <T> Predicate<T> |
concurrentDistinctBy(Function<? super T,?> mapper)
Returns a stateful
Predicate. |
static <T> Predicate<T> |
distinct()
Returns a stateful
Predicate. |
static <T> Predicate<T> |
distinctBy(Function<? super T,?> mapper)
Returns a stateful
Predicate. |
static <T> Predicate<T> |
indexed(IndexedPredicate<T> predicate)
Returns a stateful
Predicate. |
static <T> Predicate<T> |
skipRepeats()
Returns a stateful
Predicate. |
@Beta @SequentialOnly @Stateful public static <T> Predicate<T> indexed(IndexedPredicate<T> predicate)
Predicate. Don't save or cache for reuse or use it in parallel stream.T - predicate - @Beta @SequentialOnly @Stateful public static <T> Predicate<T> distinct()
Predicate. Don't save or cache for reuse or use it in parallel stream.T - @Beta @SequentialOnly @Stateful public static <T> Predicate<T> distinctBy(Function<? super T,?> mapper)
Predicate. Don't save or cache for reuse or use it in parallel stream.T - mapper - @Beta @Stateful public static <T> Predicate<T> concurrentDistinct()
Predicate. Don't save or cache for reuse or use it in parallel stream.T - @Beta @Stateful public static <T> Predicate<T> concurrentDistinctBy(Function<? super T,?> mapper)
Predicate. Don't save or cache for reuse or use it in parallel stream.T - mapper - @Beta @SequentialOnly @Stateful public static <T> Predicate<T> skipRepeats()
Predicate. Don't save or cache for reuse or use it in parallel stream.
Remove the continuous repeat elements.T - Copyright © 2021. All rights reserved.