| Package | Description |
|---|---|
| com.landawn.abacus.util | |
| com.landawn.abacus.util.stream |
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
Fn.alwaysFalse() |
static <T> Predicate<T> |
Fn.alwaysTrue() |
static <T> Predicate<T> |
Fn.and(Collection<Predicate<? super T>> c) |
static <T> Predicate<T> |
Fn.and(Predicate<? super T> first,
Predicate<? super T> second) |
static <T> Predicate<T> |
Fn.and(Predicate<? super T> first,
Predicate<? super T> second,
Predicate<? super T> third) |
static <T extends Comparable<? super T>> |
Fn.between(T minValue,
T maxValue)
Deprecated.
replaced by
gtAndLt. |
static <T> Predicate<T> |
Fn.Predicates.concurrentDistinct()
Returns a stateful
Predicate. |
static <T> Predicate<T> |
Fn.Predicates.concurrentDistinctBy(Function<? super T,?> mapper)
Returns a stateful
Predicate. |
static Predicate<String> |
Fn.contains(String str) |
static <T> Predicate<T> |
Fn.Predicates.distinct()
Returns a stateful
Predicate. |
static <T> Predicate<T> |
Fn.Predicates.distinctBy(Function<? super T,?> mapper)
Returns a stateful
Predicate. |
static Predicate<String> |
Fn.endsWith(String suffix) |
static <T> Predicate<T> |
Fn.eqOr(Object targetValue1,
Object targetValue2) |
static <T> Predicate<T> |
Fn.eqOr(Object targetValue1,
Object targetValue2,
Object targetValue3) |
static <T> Predicate<T> |
Fn.equal(Object target) |
static <T> Predicate<T> |
Fn.filterThenLimit(Predicate<T> predicate,
int limit)
Returns a stateful
Predicate. |
static <T extends Comparable<? super T>> |
Fn.geAndLe(T minValue,
T maxValue)
Checks if the value/element:
minValue <= e <= maxValue. |
static <T extends Comparable<? super T>> |
Fn.geAndLt(T minValue,
T maxValue)
Checks if the value/element:
minValue <= e < maxValue. |
static <T extends Comparable<? super T>> |
Fn.greaterEqual(T target) |
static <T extends Comparable<? super T>> |
Fn.greaterThan(T target) |
static <T extends Comparable<? super T>> |
Fn.gtAndLe(T minValue,
T maxValue)
Checks if the value/element:
minValue < e <= maxValue. |
static <T extends Comparable<? super 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 stateful
Predicate. |
static <T> Predicate<T> |
Fn.Predicates.indexed(IndexedPredicate<T> predicate)
Returns a stateful
Predicate. |
static <T> Predicate<T> |
Fn.instanceOf(Class<?> clazz) |
static Predicate<File> |
Fn.isDirectory()
Checks if is directory.
|
static Predicate<File> |
Fn.isFile()
Checks if is file.
|
static <T> Predicate<T> |
Fn.isNull()
Checks if is null.
|
static <T> Predicate<T> |
Fn.isNull(Function<T,?> valueExtractor)
Checks if is null.
|
static <T extends CharSequence> |
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> |
Fn.isNullOrEmptyC() |
static <T extends Map> |
Fn.isNullOrEmptyM() |
static <T extends CharSequence> |
Fn.isNullOrEmptyOrBlank()
Checks if is null or empty or blank.
|
static <T> Predicate<T> |
Fn.isNullOrEmptyOrBlank(Function<T,? extends CharSequence> valueExtractor) |
static <T extends Comparable<? super T>> |
Fn.lessEqual(T target) |
static <T extends Comparable<? super T>> |
Fn.lessThan(T target) |
static <T> Predicate<T> |
Fn.limitThenFilter(int limit,
Predicate<T> predicate)
Returns a stateful
Predicate. |
static Predicate<CharSequence> |
Fn.matches(Pattern pattern) |
static <T> Predicate<T> |
Fn.not(Predicate<T> predicate) |
static Predicate<String> |
Fn.notContains(String str) |
static Predicate<String> |
Fn.notEndsWith(String suffix)
Not ends with.
|
static <T> Predicate<T> |
Fn.notEqual(Object target) |
static <T> Predicate<T> |
Fn.notIn(Collection<?> c) |
static <T> Predicate<T> |
Fn.notNull() |
static <T> Predicate<T> |
Fn.notNull(Function<T,?> valueExtractor)
Not null
|
static <T extends CharSequence> |
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> |
Fn.notNullOrEmptyC() |
static <T extends Map> |
Fn.notNullOrEmptyM() |
static <T extends CharSequence> |
Fn.notNullOrEmptyOrBlank()
Not null or empty or blank.
|
static <T> Predicate<T> |
Fn.notNullOrEmptyOrBlank(Function<T,? extends CharSequence> valueExtractor) |
static Predicate<String> |
Fn.notStartsWith(String prefix)
Not starts with.
|
static <T> Predicate<T> |
Fn.or(Collection<Predicate<? super T>> c) |
static <T> Predicate<T> |
Fn.or(Predicate<? super T> first,
Predicate<? super T> second) |
static <T> Predicate<T> |
Fn.or(Predicate<? super T> first,
Predicate<? super T> second,
Predicate<? super T> third) |
static <A,T> Predicate<T> |
Fn.p(A a,
BiPredicate<A,T> biPredicate) |
static <A,B,T> Predicate<T> |
Fn.p(A a,
B b,
TriPredicate<A,B,T> triPredicate) |
static <K,V> Predicate<Map.Entry<K,V>> |
Fn.Entries.p(BiPredicate<? super K,? super V> p) |
static <T> Predicate<T> |
Fn.p(Predicate<T> predicate) |
static <A,B,T,E extends Exception> |
Fn.pp(A a,
B b,
Throwables.TriPredicate<A,B,T,E> triPredicate) |
static <A,T,E extends Exception> |
Fn.pp(A a,
Throwables.BiPredicate<A,T,E> biPredicate) |
static <K,V,E extends Exception> |
Fn.Entries.pp(Throwables.BiPredicate<? super K,? super V,E> p) |
static <T,E extends Exception> |
Fn.pp(Throwables.Predicate<T,E> predicate) |
static <T> Predicate<T> |
Fn.Predicates.skipRepeats()
Returns a stateful
Predicate. |
static <A,T> Predicate<T> |
Fn.sp(Object mutex,
A a,
BiPredicate<A,T> biPredicate)
Synchronized
Predicate. |
static <A,B,T> Predicate<T> |
Fn.sp(Object mutex,
A a,
B b,
TriPredicate<A,B,T> triPredicate)
Synchronized
Predicate. |
static <T> Predicate<T> |
Fn.sp(Object mutex,
Predicate<T> predicate)
Synchronized
Predicate. |
static Predicate<String> |
Fn.startsWith(String prefix) |
static Predicate<Class> |
Fn.subtypeOf(Class<?> clazz) |
static <K,V> Predicate<Map.Entry<K,V>> |
Fn.testByKey(Predicate<? super K> predicate)
Test by key.
|
static <K,V> Predicate<Map.Entry<K,V>> |
Fn.testByValue(Predicate<? super V> predicate)
Test by value.
|
static <K,V> Predicate<Map.Entry<K,V>> |
Fn.testKeyVal(BiPredicate<? super K,? super V> predicate)
Test key val.
|
static <T> Predicate<T> |
Fn.timeLimit(Duration duration)
Returns a stateful
Predicate. |
static <T> Predicate<T> |
Fn.timeLimit(long timeInMillis)
Returns a stateful
Predicate. |
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
Fn.and(Predicate<? super T> first,
Predicate<? super T> second) |
static <T> Predicate<T> |
Fn.and(Predicate<? super T> first,
Predicate<? super T> second) |
static <T> Predicate<T> |
Fn.and(Predicate<? super T> first,
Predicate<? super T> second,
Predicate<? super T> third) |
static <T> Predicate<T> |
Fn.and(Predicate<? super T> first,
Predicate<? super T> second,
Predicate<? super T> third) |
static <T> Predicate<T> |
Fn.and(Predicate<? super T> first,
Predicate<? super T> second,
Predicate<? super T> third) |
static <R> R |
Try.call(Callable<R> cmd,
Predicate<? super Exception> predicate,
R defaultValue) |
static <R> R |
Try.call(Callable<R> cmd,
Predicate<? super Exception> predicate,
Supplier<R> supplier) |
static <R> R |
Throwables.call(Throwables.Callable<R,? extends Throwable> cmd,
Predicate<? super Throwable> predicate,
R defaultValue) |
static <R> R |
Throwables.call(Throwables.Callable<R,? extends Throwable> cmd,
Predicate<? super Throwable> predicate,
Supplier<R> supplier) |
<R> R |
Try.call(Throwables.Function<? super T,R,? extends Exception> cmd,
Predicate<? super Exception> predicate,
R defaultValue) |
<R> R |
Try.call(Throwables.Function<? super T,R,? extends Exception> cmd,
Predicate<? super Exception> predicate,
Supplier<R> supplier) |
static <T> ObjIterator<T> |
Iterators.dropWhile(Iterator<? extends T> iter,
Predicate<? super T> filter) |
static <T> ObjIterator<T> |
Iterators.filter(Iterator<? extends T> iter,
Predicate<? super T> filter) |
Observer<T> |
Observer.filter(Predicate<? super T> filter) |
static <T> Predicate<T> |
Fn.filterThenLimit(Predicate<T> predicate,
int limit)
Returns a stateful
Predicate. |
static <T,U> ObjIterator<T> |
Iterators.generate(U init,
Predicate<? super U> hasNext,
Function<? super U,T> supplier) |
static boolean |
ExceptionUtil.hasCause(Throwable throwable,
Predicate<? super Throwable> predicate) |
static <T> Predicate<T> |
Fn.limitThenFilter(int limit,
Predicate<T> predicate)
Returns a stateful
Predicate. |
static <T> Predicate<T> |
Fn.not(Predicate<T> predicate) |
static Retry<Void> |
Retry.of(int retryTimes,
long retryInterval,
Predicate<? super Exception> retryCondition) |
static Retry.RetryR<Void> |
Retry.RetryR.of(int retryTimes,
long retryInterval,
Predicate<? super RuntimeException> retryCondition) |
static <T> Predicate<T> |
Fn.or(Predicate<? super T> first,
Predicate<? super T> second) |
static <T> Predicate<T> |
Fn.or(Predicate<? super T> first,
Predicate<? super T> second) |
static <T> Predicate<T> |
Fn.or(Predicate<? super T> first,
Predicate<? super T> second,
Predicate<? super T> third) |
static <T> Predicate<T> |
Fn.or(Predicate<? super T> first,
Predicate<? super T> second,
Predicate<? super T> third) |
static <T> Predicate<T> |
Fn.or(Predicate<? super T> first,
Predicate<? super T> second,
Predicate<? super T> third) |
static <T> Predicate<T> |
Fn.p(Predicate<T> predicate) |
static <T,E extends Throwable> |
Fn.Fnn.pp(Predicate<T> predicate) |
static <T> ObjIterator<T> |
Iterators.skipUntil(Iterator<? extends T> iter,
Predicate<? super T> filter) |
static <T> Predicate<T> |
Fn.sp(Object mutex,
Predicate<T> predicate)
Synchronized
Predicate. |
static <T> ObjIterator<T> |
Iterators.takeWhile(Iterator<? extends T> iter,
Predicate<? super T> filter) |
static <T> ObjIterator<T> |
Iterators.takeWhileInclusive(Iterator<? extends T> iter,
Predicate<? super T> filter) |
static <K,V> Predicate<Map.Entry<K,V>> |
Fn.testByKey(Predicate<? super K> predicate)
Test by key.
|
static <K,V> Predicate<Map.Entry<K,V>> |
Fn.testByValue(Predicate<? super V> predicate)
Test by value.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
Fn.and(Collection<Predicate<? super T>> c) |
static <T> Predicate<T> |
Fn.or(Collection<Predicate<? super T>> c) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Collector<T,?,List<T>> |
Collectors.filtering(Predicate<? super T> predicate)
It's copied from StreamEx: https://github.com/amaembo/streamex under Apache License v2 and may be modified.
|
static <T,A,R> Collector<T,?,R> |
Collectors.filtering(Predicate<? super T> predicate,
Collector<? super T,A,R> downstream)
It's copied from StreamEx: https://github.com/amaembo/streamex under Apache License v2 and may be modified.
|
static <T> Collector<T,?,u.Optional<T>> |
Collectors.onlyOne(Predicate<? super T> predicate)
DuplicatedResultException is threw if there are more than one values are collected. |
static <T> Collector<T,?,Map<Boolean,List<T>>> |
Collectors.partitioningBy(Predicate<? super T> predicate) |
static <T,D,A> Collector<T,?,Map<Boolean,D>> |
Collectors.partitioningBy(Predicate<? super T> predicate,
Collector<? super T,A,D> downstream) |
Copyright © 2021. All rights reserved.