Uses of Interface
com.landawn.abacus.util.function.Predicate
Package
Description
-
Uses of Predicate in com.landawn.abacus.util
Modifier and TypeFieldDescriptionstatic final Predicate<u.OptionalBoolean>
static final Predicate<u.OptionalByte>
static final Predicate<u.OptionalChar>
static final Predicate<u.OptionalDouble>
static final Predicate<OptionalDouble>
static final Predicate<u.OptionalFloat>
static final Predicate<u.OptionalInt>
static final Predicate<OptionalInt>
static final Predicate<u.OptionalLong>
static final Predicate<OptionalLong>
static final Predicate<u.OptionalShort>
Modifier and TypeMethodDescriptionstatic <T> Predicate<T>
Fn.alwaysFalse()
static <T> Predicate<T>
Fn.alwaysTrue()
static <T> Predicate<T>
static <T> Predicate<T>
static <T> Predicate<T>
Fn.and
(Collection<Predicate<? super T>> c) static <T extends Comparable<? super T>>
Predicate<T>Fn.between
(T minValue, T maxValue) Deprecated.static <T> Predicate<T>
Fn.Predicates.concurrentDistinct()
Returns a statefulPredicate
.static <T> Predicate<T>
Fn.Predicates.concurrentDistinctBy
(Function<? super T, ?> mapper) Returns a statefulPredicate
.static <T> Predicate<T>
Fn.Predicates.distinct()
Returns a statefulPredicate
.static <T> Predicate<T>
Fn.Predicates.distinctBy
(Function<? super T, ?> mapper) Returns a statefulPredicate
.static <T> Predicate<T>
static <T> Predicate<T>
static <T> Predicate<T>
static <T> Predicate<T>
Fn.filterThenLimit
(Predicate<T> predicate, int limit) Returns a statefulPredicate
.static <T> Predicate<T>
static <T extends Comparable<? super T>>
Predicate<T>Fn.geAndLe
(T minValue, T maxValue) Checks if the value/element:minValue <= e <= maxValue
.static <T extends Comparable<? super T>>
Predicate<T>Fn.geAndLt
(T minValue, T maxValue) Checks if the value/element:minValue <= e < maxValue
.static <T extends Comparable<? super T>>
Predicate<T>Fn.greaterEqual
(T target) static <T extends Comparable<? super T>>
Predicate<T>Fn.greaterThan
(T target) static <T extends Comparable<? super T>>
Predicate<T>Fn.gtAndLe
(T minValue, T maxValue) Checks if the value/element:minValue < e <= maxValue
.static <T extends Comparable<? super T>>
Predicate<T>Fn.gtAndLt
(T minValue, T maxValue) Checks if the value/element:minValue < e < maxValue
.static <T> Predicate<T>
Fn.in
(Collection<?> c) static <T> Predicate<T>
Fn.indexed
(IndexedPredicate<T> predicate) Returns a statefulPredicate
.static <T> Predicate<T>
Fn.Predicates.indexed
(IndexedPredicate<T> predicate) Returns a statefulPredicate
.static <T> Predicate<T>
Fn.instanceOf
(Class<?> clazz) static <T> Predicate<T>
Fn.Predicates.invertedByDuration
(long delayInMillis, long periodInMillis, MutableBoolean cancellationFlag) Deprecated.static <T> Predicate<T>
Fn.Predicates.invertedByDuration
(long delayInMillis, long periodInMillis, MutableBoolean cancellationFlag, Runnable update) Deprecated.static <T> Predicate<T>
Fn.Predicates.invertedByDuration
(long periodInMillis, MutableBoolean cancellationFlag) Deprecated.static <T> Predicate<T>
Fn.Predicates.invertedByDuration
(long periodInMillis, MutableBoolean cancellationFlag, Runnable update) Deprecated.Fn.isDirectory()
Checks if is directory.Fn.isFile()
Checks if is file.static <T> Predicate<T>
Fn.isNull()
Checks if is null.static <T> Predicate<T>
Checks if is null.static <T extends CharSequence>
Predicate<T>Fn.isNullOrEmpty()
Checks if is null or empty.static <T> Predicate<T>
Fn.isNullOrEmpty
(Function<T, ? extends CharSequence> valueExtractor) static <T> Predicate<T[]>
Fn.isNullOrEmptyA()
static <T extends Collection>
Predicate<T>Fn.isNullOrEmptyC()
Fn.isNullOrEmptyM()
static <T extends CharSequence>
Predicate<T>Fn.isNullOrEmptyOrBlank()
Checks if is null or empty or blank.static <T> Predicate<T>
Fn.isNullOrEmptyOrBlank
(Function<T, ? extends CharSequence> valueExtractor) static <T> Predicate<u.Optional<? extends T>>
Fn.isPresent()
Fn.isPresentJdk()
static <T extends Comparable<? super T>>
Predicate<T>Fn.lessEqual
(T target) static <T extends Comparable<? super T>>
Predicate<T>Fn.lessThan
(T target) static <T> Predicate<T>
Fn.limitThenFilter
(int limit, Predicate<T> predicate) Returns a statefulPredicate
.static Predicate<CharSequence>
static <T> Predicate<T>
Fn.notContains
(String str) Fn.notEndsWith
(String suffix) Not ends with.static <T> Predicate<T>
static <T> Predicate<T>
Fn.notIn
(Collection<?> c) static <T> Predicate<T>
Fn.notNull()
static <T> Predicate<T>
Not nullstatic <T extends CharSequence>
Predicate<T>Fn.notNullOrEmpty()
Not null or empty.static <T> Predicate<T>
Fn.notNullOrEmpty
(Function<T, ? extends CharSequence> valueExtractor) static <T> Predicate<T[]>
Fn.notNullOrEmptyA()
static <T extends Collection>
Predicate<T>Fn.notNullOrEmptyC()
Fn.notNullOrEmptyM()
static <T extends CharSequence>
Predicate<T>Not null or empty or blank.static <T> Predicate<T>
Fn.notNullOrEmptyOrBlank
(Function<T, ? extends CharSequence> valueExtractor) Fn.notStartsWith
(String prefix) Not starts with.static <T> Predicate<T>
static <T> Predicate<T>
static <T> Predicate<T>
Fn.or
(Collection<Predicate<? super T>> c) Fn.Entries.p
(BiPredicate<? super K, ? super V> p) static <A,
B, T> Predicate<T> Fn.p
(A a, B b, TriPredicate<A, B, T> triPredicate) static <A,
T> Predicate<T> Fn.p
(A a, BiPredicate<A, T> biPredicate) static <T> Predicate<T>
Fn.Entries.pp
(Throwables.BiPredicate<? super K, ? super V, E> p) Fn.pp
(A a, B b, Throwables.TriPredicate<A, B, T, E> triPredicate) Fn.pp
(A a, Throwables.BiPredicate<A, T, E> biPredicate) Fn.pp
(Throwables.Predicate<T, E> predicate) static <T> Predicate<T>
Fn.Predicates.skipRepeats()
Returns a statefulPredicate
.static <A,
B, T> Predicate<T> Fn.sp
(Object mutex, A a, B b, TriPredicate<A, B, T> triPredicate) SynchronizedPredicate
.static <A,
T> Predicate<T> Fn.sp
(Object mutex, A a, BiPredicate<A, T> biPredicate) SynchronizedPredicate
.static <T> Predicate<T>
SynchronizedPredicate
.Fn.startsWith
(String prefix) Test by key.Fn.testByValue
(Predicate<? super V> predicate) Test by value.Fn.testKeyVal
(BiPredicate<? super K, ? super V> predicate) Test key val.static <T> Predicate<T>
Fn.timeLimit
(long timeInMillis) Returns a statefulPredicate
.static <T> Predicate<T>
Returns a statefulPredicate
.Modifier and TypeMethodDescriptionstatic <T> Consumer<T>
static <T> Consumer<T>
Fn.acceptIfOrElse
(Predicate<? super T> predicate, Consumer<? super T> consumerForTrue, Consumer<? super T> consumerForFalse) static <T> Predicate<T>
static <T> Predicate<T>
static <T,
R> Function<T, R> Fn.applyIfOrElseDefault
(Predicate<? super T> predicate, Function<? super T, R> func, R defaultValue) static <T,
R> Function<T, R> Fn.applyIfOrElseGet
(Predicate<? super T> predicate, Function<? super T, R> func, Supplier<? extends R> supplier) static <T> Predicate<T>
Fn.filterThenLimit
(Predicate<T> predicate, int limit) Returns a statefulPredicate
.static <T> Predicate<T>
Fn.limitThenFilter
(int limit, Predicate<T> predicate) Returns a statefulPredicate
.static <T> Predicate<T>
static <T> Predicate<T>
static <T> Predicate<T>
static <T> Predicate<T>
static <T,
E extends Throwable>
Throwables.Predicate<T,E> static <T> Predicate<T>
SynchronizedPredicate
.Test by key.Fn.testByValue
(Predicate<? super V> predicate) Test by value.Modifier and TypeMethodDescriptionstatic <T> Predicate<T>
Fn.and
(Collection<Predicate<? super T>> c) static <T> Predicate<T>
Fn.or
(Collection<Predicate<? super T>> c) -
Uses of Predicate in com.landawn.abacus.util.function
-
Uses of Predicate in com.landawn.abacus.util.stream
Modifier and TypeMethodDescriptionDistinct and filter by occurrences.EntryStream.distinctBy
(Function<? super Map.Entry<K, V>, ?> keyMapper, Predicate<? super Long> occurrencesFilter) Stream.distinctBy
(Function<? super T, K> keyMapper, Predicate<? super Long> occurrencesFilter) Distinct and filter by occurrences.EntryStream.dropWhile
(Predicate<? super Map.Entry<K, V>> predicate, Consumer<? super Map.Entry<K, V>> actionOnDroppedItem) EntryStream.filter
(Predicate<? super Map.Entry<K, V>> predicate, Consumer<? super Map.Entry<K, V>> actionOnDroppedItem) EntryStream.filterByKey
(Predicate<? super K> keyPredicate) EntryStream.filterByValue
(Predicate<? super V> valuePredicate) static <T> Stream<T>
Stream.iterate
(T init, Predicate<? super T> hasNext, UnaryOperator<T> f) static <K,
V> Stream<K> static <K,
V> Stream<V> Stream.onErrorContinue
(Predicate<? super Throwable> errorPredicate, Consumer<? super Throwable> errorConsumer) This method should be only applied sequentialStream
and whose up-streams are sequentialStreams
as well.Stream.onErrorContinue
(Predicate<? super Throwable> errorPredicate, Consumer<? super Throwable> errorConsumer, int maxErrorCountToStop) This method should be only applied sequentialStream
and whose up-streams are sequentialStreams
as well.Stream.onErrorReturn
(Predicate<? super Throwable> predicate, Function<? super Throwable, ? extends T> mapperForFallbackValue, int maxErrorCountToStop) This method should be only applied sequentialStream
and whose up-streams are sequentialStreams
as well.Stream.onErrorReturn
(Predicate<? super Throwable> predicate, Supplier<? extends T> supplierForFallbackValue) This method should be only applied sequentialStream
and whose up-streams are sequentialStreams
as well.Stream.onErrorReturn
(Predicate<? super Throwable> predicate, T fallbackValue) This method should be only applied sequentialStream
and whose up-streams are sequentialStreams
as well.Stream.partitionBy
(Predicate<? super T> predicate) Stream.partitionBy
(Predicate<? super T> predicate, Collector<? super T, A, D> downstream) abstract EntryStream<Boolean,
List<T>> Stream.partitionByToEntry
(Predicate<? super T> predicate) abstract <A,
D> EntryStream<Boolean, D> Stream.partitionByToEntry
(Predicate<? super T> predicate, Collector<? super T, A, D> downstream) abstract u.Optional<T>
Stream.reduceUntil
(BinaryOperator<T> accumulator, Predicate<? super T> conditionToBreak) Stream.reduceUntil
(T identity, BinaryOperator<T> accumulator, Predicate<? super T> conditionToBreak) abstract <U> U
Stream.reduceUntil
(U identity, BiFunction<U, ? super T, U> accumulator, BinaryOperator<U> combiner, Predicate<? super U> conditionToBreak) Deprecated.EntryStream.removeIf
(Predicate<? super Map.Entry<K, V>> predicate, Consumer<? super Map.Entry<K, V>> actionOnDroppedItem) Deprecated.Stream<EntryStream<K,
V>> abstract <C extends Collection<T>>
Stream<C>abstract <A,
R> Stream<R> Stream<EntryStream<K,
V>> abstract <A,
R> Stream<R> Split the stream into two pieces atwhere
turns tofalse
.EntryStream.splitToList
(Predicate<? super Map.Entry<K, V>> predicate) Stream.splitToSet
(Predicate<? super T> predicate) Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.
gtAndLt
.