| 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> |
invertedByDuration(long delayInMillis,
long periodInMillis,
MutableBoolean cancellationFlag)
Deprecated.
|
static <T> Predicate<T> |
invertedByDuration(long delayInMillis,
long periodInMillis,
MutableBoolean cancellationFlag,
Runnable update)
Deprecated.
|
static <T> Predicate<T> |
invertedByDuration(long periodInMillis,
MutableBoolean cancellationFlag)
Deprecated.
|
static <T> Predicate<T> |
invertedByDuration(long periodInMillis,
MutableBoolean cancellationFlag,
Runnable update)
Deprecated.
|
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 - @Deprecated @Beta public static <T> Predicate<T> invertedByDuration(long periodInMillis, MutableBoolean cancellationFlag)
true/false are repeatedly returned after each specified duration.T - periodInMillis - cancellationFlag - the underline scheduled Task will be cancelled if cancellationFlag is set to true.@Deprecated @Beta public static <T> Predicate<T> invertedByDuration(long periodInMillis, MutableBoolean cancellationFlag, Runnable update)
true/false are repeatedly returned after each specified duration.T - periodInMillis - cancellationFlag - the underline scheduled Task will be cancelled if cancellationFlag is set to true.update - called at the beginning of each duration.@Deprecated @Beta public static <T> Predicate<T> invertedByDuration(long delayInMillis, long periodInMillis, MutableBoolean cancellationFlag)
true/false are repeatedly returned after each specified duration.T - delayInMillis - periodInMillis - cancellationFlag - the underline scheduled Task will be cancelled if cancellationFlag is set to true.@Deprecated @Beta public static <T> Predicate<T> invertedByDuration(long delayInMillis, long periodInMillis, MutableBoolean cancellationFlag, Runnable update)
true/false are repeatedly returned after each specified duration.T - delayInMillis - periodInMillis - cancellationFlag - the underline scheduled Task will be cancelled if cancellationFlag is set to true.update - called at the beginning of each duration.Copyright © 2021. All rights reserved.