Uses of Interface
com.landawn.abacus.util.Throwables.Predicate
Package
Description
-
Uses of Throwables.Predicate in com.landawn.abacus.util
Modifier and TypeMethodDescriptionstatic <T,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.alwaysFalse()
static <T,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.alwaysTrue()
static <K,
V, E extends Exception>
Throwables.Predicate<Map.Entry<K,V>, E> Fn.Entries.ep
(Throwables.BiPredicate<? super K, ? super V, E> p) static <T,
E extends Throwable>
Throwables.Predicate<T,E> static <T,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.isNull()
static <T extends CharSequence,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.isNullOrEmpty()
static <T,
E extends Exception>
Throwables.Predicate<T[],E> Fn.Fnn.isNullOrEmptyA()
static <T extends Collection,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.isNullOrEmptyC()
static <T extends Map,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.isNullOrEmptyM()
default Throwables.Predicate<T,
E> Throwables.Predicate.negate()
static <T,
E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.not
(Throwables.Predicate<T, E> predicate) static <T,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.notNull()
static <T extends CharSequence,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.notNullOrEmpty()
static <T,
E extends Exception>
Throwables.Predicate<T[],E> Fn.Fnn.notNullOrEmptyA()
static <T extends Collection,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.notNullOrEmptyC()
static <T extends Map,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.notNullOrEmptyM()
static <A,
B, T, E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.p
(A a, B b, Throwables.TriPredicate<A, B, T, E> triPredicate) static <A,
T, E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.p
(A a, Throwables.BiPredicate<A, T, E> biPredicate) static <T,
E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.p
(Throwables.Predicate<T, E> predicate) static <A,
B, T, E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.pp
(A a, B b, TriPredicate<A, B, T> triPredicate) static <A,
T, E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.pp
(A a, BiPredicate<A, T> biPredicate) static <T,
E extends Throwable>
Throwables.Predicate<T,E> static <A,
B, T, E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.sp
(Object mutex, A a, B b, Throwables.TriPredicate<A, B, T, E> triPredicate) SynchronizedPredicate
.static <A,
T, E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.sp
(Object mutex, A a, Throwables.BiPredicate<A, T, E> biPredicate) SynchronizedPredicate
.static <T,
E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.sp
(Object mutex, Throwables.Predicate<T, E> predicate) SynchronizedPredicate
.static <K,
V, E extends Throwable>
Throwables.Predicate<Map.Entry<K,V>, E> Fn.Fnn.testByKey
(Throwables.Predicate<? super K, E> predicate) static <K,
V, E extends Throwable>
Throwables.Predicate<Map.Entry<K,V>, E> Fn.Fnn.testByValue
(Throwables.Predicate<? super V, E> predicate) Modifier and TypeMethodDescription<E2 extends Exception>
booleanExceptionalStream.allMatch
(Throwables.Predicate<? super T, E2> predicate) static <T,
E extends Exception>
booleanN.allMatch
(Iterable<? extends T> c, Throwables.Predicate<? super T, E> filter) static <T,
E extends Exception>
booleanN.allMatch
(Iterator<? extends T> iter, Throwables.Predicate<? super T, E> filter) static <T,
E extends Exception>
booleanN.allMatch
(T[] a, Throwables.Predicate<? super T, E> filter) <E2 extends Exception>
booleanExceptionalStream.anyMatch
(Throwables.Predicate<? super T, E2> predicate) static <T,
E extends Exception>
booleanN.anyMatch
(Iterable<? extends T> c, Throwables.Predicate<? super T, E> filter) static <T,
E extends Exception>
booleanN.anyMatch
(Iterator<? extends T> iter, Throwables.Predicate<? super T, E> filter) static <T,
E extends Exception>
booleanN.anyMatch
(T[] a, Throwables.Predicate<? super T, E> filter) Joiner.appendAll
(Iterable<? extends T> c, Throwables.Predicate<? super T, E> filter) Joiner.appendAll
(Iterator<? extends T> iter, Throwables.Predicate<? super T, E> filter) Joiner.appendEntries
(Map<K, V> m, Throwables.Predicate<? super Map.Entry<K, V>, E> filter) <E extends Exception,
E2 extends Exception>
Builder.DataSetBuilderBuilder.DataSetBuilder.combineColumns
(Throwables.Predicate<String, E> columnNameFilter, String newColumnName, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E2> combineFunc) <E extends Exception>
Builder.DataSetBuilderBuilder.DataSetBuilder.combineColumns
(Throwables.Predicate<String, E> columnNameFilter, String newColumnName, Class<?> newColumnClass) DataSet.combineColumns
(Throwables.Predicate<String, E> columnNameFilter, String newColumnName, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E2> combineFunc) <E extends Exception>
voidDataSet.combineColumns
(Throwables.Predicate<String, E> columnNameFilter, String newColumnName, Class<?> newColumnClass) RowDataSet.combineColumns
(Throwables.Predicate<String, E> columnNameFilter, String newColumnName, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E2> combineFunc) <E extends Exception>
voidRowDataSet.combineColumns
(Throwables.Predicate<String, E> columnNameFilter, String newColumnName, Class<?> newColumnClass) static <T,
E extends Exception>
longIterators.count
(Iterator<? extends T> iter, Throwables.Predicate<? super T, E> predicate) static <T,
E extends Exception>
intN.count
(Iterable<? extends T> c, Throwables.Predicate<? super T, E> filter) Mostly it's designed for one-step operation to complete the operation in one step.static <T,
E extends Exception>
intN.count
(Collection<? extends T> c, int fromIndex, int toIndex, Throwables.Predicate<? super T, E> filter) Mostly it's designed for one-step operation to complete the operation in one step.static <T,
E extends Exception>
intN.count
(Iterator<? extends T> iter, Throwables.Predicate<? super T, E> filter) static <T,
E extends Exception>
intN.count
(T[] a, int fromIndex, int toIndex, Throwables.Predicate<? super T, E> filter) Mostly it's designed for one-step operation to complete the operation in one step.static <T,
E extends Exception>
intN.count
(T[] a, Throwables.Predicate<? super T, E> filter) Mostly it's designed for one-step operation to complete the operation in one step.ExceptionalStream.distinct
(Throwables.Predicate<? super Long, ? extends E> occurrencesFilter) Distinct and filter by occurrences.<K> ExceptionalStream<T,
E> ExceptionalStream.distinctBy
(Throwables.Function<? super T, K, ? extends E> keyMapper, Throwables.Predicate<? super Map.Entry<Keyed<K, T>, Long>, ? extends E> occurrencesFilter) Distinct and filter by occurrences.ExceptionalStream.dropWhile
(Throwables.Predicate<? super T, ? extends E> predicate) ExceptionalStream.dropWhile
(Throwables.Predicate<? super T, ? extends E> predicate, Throwables.Consumer<? super T, ? extends E> actionOnDroppedItem) N.dropWhile
(Iterable<? extends T> c, Throwables.Predicate<? super T, E> filter) N.dropWhile
(T[] a, Throwables.Predicate<? super T, E> filter) <E extends Exception>
u.Optional<T>Builder.filter
(Throwables.Predicate<? super T, E> predicate) DataSet.filter
(int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) DataSet.filter
(int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) DataSet.filter
(Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) DataSet.filter
(Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) DataSet.filter
(String columnName, int fromRowIndex, int toRowIndex, Throwables.Predicate<T, E> filter) DataSet.filter
(String columnName, int fromRowIndex, int toRowIndex, Throwables.Predicate<T, E> filter, int max) DataSet.filter
(String columnName, Throwables.Predicate<T, E> filter) DataSet.filter
(String columnName, Throwables.Predicate<T, E> filter, int max) DataSet.filter
(Collection<String> columnNames, int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) DataSet.filter
(Collection<String> columnNames, int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) DataSet.filter
(Collection<String> columnNames, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) DataSet.filter
(Collection<String> columnNames, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) ExceptionalStream.filter
(Throwables.Predicate<? super T, ? extends E> predicate) ExceptionalStream.filter
(Throwables.Predicate<? super T, ? extends E> predicate, Throwables.Consumer<? super T, ? extends E> actionOnDroppedItem) <E extends Exception>
u.Nullable<T>Holder.filter
(Throwables.Predicate<? super T, E> predicate) <E extends Exception>
LongMultiset<T>LongMultiset.filter
(Throwables.Predicate<? super T, E> filter) Multiset.filter
(Throwables.Predicate<? super T, E> filter) N.filter
(Iterable<? extends T> c, Throwables.Predicate<? super T, E> filter) N.filter
(Iterable<? extends T> c, Throwables.Predicate<? super T, E> filter, int max) static <T,
R extends Collection<T>, E extends Exception>
RN.filter
(Iterable<? extends T> c, Throwables.Predicate<? super T, E> filter, int max, IntFunction<R> supplier) static <T,
R extends Collection<T>, E extends Exception>
RN.filter
(Iterable<? extends T> c, Throwables.Predicate<? super T, E> filter, IntFunction<R> supplier) N.filter
(Collection<? extends T> c, int fromIndex, int toIndex, Throwables.Predicate<? super T, E> filter) N.filter
(Collection<? extends T> c, int fromIndex, int toIndex, Throwables.Predicate<? super T, E> filter, int max) static <T,
R extends Collection<T>, E extends Exception>
RN.filter
(Collection<? extends T> c, int fromIndex, int toIndex, Throwables.Predicate<? super T, E> filter, int max, IntFunction<R> supplier) static <T,
R extends Collection<T>, E extends Exception>
RN.filter
(Collection<? extends T> c, int fromIndex, int toIndex, Throwables.Predicate<? super T, E> filter, IntFunction<R> supplier) N.filter
(T[] a, int fromIndex, int toIndex, Throwables.Predicate<? super T, E> filter) N.filter
(T[] a, int fromIndex, int toIndex, Throwables.Predicate<? super T, E> filter, int max) Mostly it's designed for one-step operation to complete the operation in one step.static <T,
R extends Collection<T>, E extends Exception>
RN.filter
(T[] a, int fromIndex, int toIndex, Throwables.Predicate<? super T, E> filter, int max, IntFunction<R> supplier) Mostly it's designed for one-step operation to complete the operation in one step.static <T,
R extends Collection<T>, E extends Exception>
RN.filter
(T[] a, int fromIndex, int toIndex, Throwables.Predicate<? super T, E> filter, IntFunction<R> supplier) N.filter
(T[] a, Throwables.Predicate<? super T, E> filter) N.filter
(T[] a, Throwables.Predicate<? super T, E> filter, int max) static <T,
R extends Collection<T>, E extends Exception>
RN.filter
(T[] a, Throwables.Predicate<? super T, E> filter, int max, IntFunction<R> supplier) static <T,
R extends Collection<T>, E extends Exception>
RN.filter
(T[] a, Throwables.Predicate<? super T, E> filter, IntFunction<R> supplier) <E extends Exception>
u.Optional<Pair<L,R>> Pair.filter
(Throwables.Predicate<? super Pair<L, R>, E> predicate) RowDataSet.filter
(int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) RowDataSet.filter
(int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) RowDataSet.filter
(Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) RowDataSet.filter
(Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) RowDataSet.filter
(String columnName, int fromRowIndex, int toRowIndex, Throwables.Predicate<T, E> filter) RowDataSet.filter
(String columnName, int fromRowIndex, int toRowIndex, Throwables.Predicate<T, E> filter, int max) RowDataSet.filter
(String columnName, Throwables.Predicate<T, E> filter) RowDataSet.filter
(String columnName, Throwables.Predicate<T, E> filter, int max) RowDataSet.filter
(Collection<String> columnNames, int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) RowDataSet.filter
(Collection<String> columnNames, int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) RowDataSet.filter
(Collection<String> columnNames, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) RowDataSet.filter
(Collection<String> columnNames, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) <E extends Exception>
u.Optional<TP>Tuple.filter
(Throwables.Predicate<? super TP, E> predicate) <E extends Exception>
u.Nullable<T>u.Nullable.filter
(Throwables.Predicate<? super T, E> predicate) <E extends Exception>
u.Optional<T>u.Optional.filter
(Throwables.Predicate<? super T, E> predicate) <X extends Exception>
ListMultimap<K,E> ListMultimap.filterByKey
(Throwables.Predicate<? super K, X> filter) Filter by key.Maps.filterByKey
(Map<K, V> map, Throwables.Predicate<? super K, E> predicate) Filter by key.Multimap.filterByKey
(Throwables.Predicate<? super K, X> filter) Filter by key.<X extends Exception>
SetMultimap<K,E> SetMultimap.filterByKey
(Throwables.Predicate<? super K, X> filter) Filter by key.<X extends Exception>
ListMultimap<K,E> ListMultimap.filterByValue
(Throwables.Predicate<? super List<E>, X> filter) Filter by value.Maps.filterByValue
(Map<K, V> map, Throwables.Predicate<? super V, E> predicate) Filter by value.Multimap.filterByValue
(Throwables.Predicate<? super V, X> filter) Filter by value.<X extends Exception>
SetMultimap<K,E> SetMultimap.filterByValue
(Throwables.Predicate<? super Set<E>, X> filter) Filter by value.ExceptionalStream.filterE
(Throwables.Predicate<? super T, ? extends Exception> predicate) <E extends Exception>
u.Optional<T>Holder.filterIfNotNull
(Throwables.Predicate<? super T, E> predicate) Filter if not null.<E extends Exception>
u.Optional<T>u.Nullable.filterIfNotNull
(Throwables.Predicate<? super T, E> predicate) Filter if not null.<E2 extends Exception>
u.Optional<T>ExceptionalStream.findAny
(Throwables.Predicate<? super T, E2> predicate) Same asfindFirst(Throwables.Predicate)
.<E2 extends Exception>
u.Optional<T>ExceptionalStream.findFirst
(Throwables.Predicate<? super T, E2> predicate) static <T,
E extends Exception>
Pair<u.Nullable<T>,u.Nullable<T>> Iterables.findFirstAndLast
(Collection<? extends T> c, Throwables.Predicate<? super T, E> predicate) Find first and last.static <T,
E extends Exception, E2 extends Exception>
Pair<u.Nullable<T>,u.Nullable<T>> Iterables.findFirstAndLast
(Collection<? extends T> c, Throwables.Predicate<? super T, E> predicateForFirst, Throwables.Predicate<? super T, E2> predicateForLast) Find first and last.static <T,
E extends Exception>
Pair<u.Nullable<T>,u.Nullable<T>> Iterables.findFirstAndLast
(T[] a, Throwables.Predicate<? super T, E> predicate) Find first and last.static <T,
E extends Exception, E2 extends Exception>
Pair<u.Nullable<T>,u.Nullable<T>> Iterables.findFirstAndLast
(T[] a, Throwables.Predicate<? super T, E> predicateForFirst, Throwables.Predicate<? super T, E2> predicateForLast) Find first and last.static <T,
E extends Exception>
Pair<u.OptionalInt,u.OptionalInt> Iterables.findFirstAndLastIndex
(Collection<? extends T> c, Throwables.Predicate<? super T, E> predicate) Find first and last index.static <T,
E extends Exception, E2 extends Exception>
Pair<u.OptionalInt,u.OptionalInt> Iterables.findFirstAndLastIndex
(Collection<? extends T> c, Throwables.Predicate<? super T, E> predicateForFirst, Throwables.Predicate<? super T, E2> predicateForLast) Find first and last index.static <T,
E extends Exception>
Pair<u.OptionalInt,u.OptionalInt> Iterables.findFirstAndLastIndex
(T[] a, Throwables.Predicate<? super T, E> predicate) Find first and last index.static <T,
E extends Exception, E2 extends Exception>
Pair<u.OptionalInt,u.OptionalInt> Iterables.findFirstAndLastIndex
(T[] a, Throwables.Predicate<? super T, E> predicateForFirst, Throwables.Predicate<? super T, E2> predicateForLast) Find first and last index.<E2 extends Exception>
u.Optional<T>ExceptionalStream.findFirstOrAny
(Throwables.Predicate<? super T, E2> predicateForFirst) Returns the first element matched bypredicateForFirst
if found or the first element if this stream is not empty Otherwise an emptyOptional<T>
will be returned.<E2 extends Exception,
E3 extends Exception>
u.Optional<T>ExceptionalStream.findFirstOrAny
(Throwables.Predicate<? super T, E2> predicateForFirst, Throwables.Predicate<? super T, E3> predicateForAny) Returns the first element matched bypredicateForFirst
if found or the first element matched bypredicateForAny
.<E2 extends Exception>
u.Optional<T>ExceptionalStream.findFirstOrLast
(Throwables.Predicate<? super T, E2> predicateForFirst) Returns the first element matched bypredicateForFirst
if found or the last element if this stream is not empty Otherwise an emptyOptional<T>
will be returned.static <T,
E extends Exception, E2 extends Exception>
u.Nullable<T>Iterables.findFirstOrLast
(Collection<? extends T> c, Throwables.Predicate<? super T, E> predicateForFirst, Throwables.Predicate<? super T, E2> predicateForLast) Find first or last.static <T,
E extends Exception, E2 extends Exception>
u.Nullable<T>Iterables.findFirstOrLast
(T[] a, Throwables.Predicate<? super T, E> predicateForFirst, Throwables.Predicate<? super T, E2> predicateForLast) Find first or last.static <T,
E extends Exception, E2 extends Exception>
u.OptionalIntIterables.findFirstOrLastIndex
(Collection<? extends T> c, Throwables.Predicate<? super T, E> predicateForFirst, Throwables.Predicate<? super T, E2> predicateForLast) static <T,
E extends Exception, E2 extends Exception>
u.OptionalIntIterables.findFirstOrLastIndex
(T[] a, Throwables.Predicate<? super T, E> predicateForFirst, Throwables.Predicate<? super T, E2> predicateForLast) Find first or last index.<E2 extends Exception>
u.Optional<T>ExceptionalStream.findLast
(Throwables.Predicate<? super T, E2> predicate) Consider using:stream.reversed().findFirst(predicate)
for better performance if possible.ClassUtil.getClassesByPackage
(String pkgName, boolean isRecursive, boolean skipClassLoaddingException, Throwables.Predicate<? super Class<?>, E> predicate) Gets the classes by package.ClassUtil.getPropNames
(Object bean, Throwables.Predicate<Object, E> propValueFilter) static <T,
E extends Exception>
ExceptionalStream<T,E> ExceptionalStream.iterate
(T init, Throwables.Predicate<? super T, ? extends E> hasNext, Throwables.UnaryOperator<T, ? extends E> f) CSVUtil.loadCSV
(File csvFile, long offset, long count, Throwables.Predicate<String[], E> filter, List<? extends com.landawn.abacus.type.Type> columnTypeList) Load the data from CSV.CSVUtil.loadCSV
(File csvFile, long offset, long count, Throwables.Predicate<String[], E> filter, Map<String, ? extends com.landawn.abacus.type.Type> columnTypeMap) Load the data from CSV.CSVUtil.loadCSV
(File csvFile, Collection<String> selectColumnNames, long offset, long count, Throwables.Predicate<String[], E> filter) Load the data from CSV.CSVUtil.loadCSV
(InputStream csvInputStream, long offset, long count, Throwables.Predicate<String[], E> filter, List<? extends com.landawn.abacus.type.Type> columnTypeList) Load the data from CSV.CSVUtil.loadCSV
(InputStream csvInputStream, long offset, long count, Throwables.Predicate<String[], E> filter, Map<String, ? extends com.landawn.abacus.type.Type> columnTypeMap) Load the data from CSV.CSVUtil.loadCSV
(InputStream csvInputStream, Collection<String> selectColumnNames, long offset, long count, Throwables.Predicate<String[], E> filter) Load the data from CSV.CSVUtil.loadCSV
(Reader csvReader, long offset, long count, Throwables.Predicate<String[], E> filter, List<? extends com.landawn.abacus.type.Type> columnTypeList) Load the data from CSV.CSVUtil.loadCSV
(Reader csvReader, long offset, long count, Throwables.Predicate<String[], E> filter, Map<String, ? extends com.landawn.abacus.type.Type> columnTypeMap) Load the data from CSV.CSVUtil.loadCSV
(Reader csvReader, Collection<String> selectColumnNames, long offset, long count, Throwables.Predicate<String[], E> filter) Load the data from CSV.CSVUtil.loadCSV
(Class<?> beanClass, File csvFile, Collection<String> selectColumnNames, long offset, long count, Throwables.Predicate<String[], E> filter) Load the data from CSV.CSVUtil.loadCSV
(Class<?> beanClass, InputStream csvInputStream, Collection<String> selectColumnNames, long offset, long count, Throwables.Predicate<String[], E> filter) Load the data from CSV.CSVUtil.loadCSV
(Class<?> beanClass, Reader csvReader, Collection<String> selectColumnNames, long offset, long count, Throwables.Predicate<String[], E> filter) Load the data from CSV.<E2 extends Exception>
booleanExceptionalStream.nMatch
(long atLeast, long atMost, Throwables.Predicate<? super T, E2> predicate) static <T,
E extends Exception>
booleanN.nMatch
(Iterable<? extends T> c, int atLeast, int atMost, Throwables.Predicate<? super T, E> filter) static <T,
E extends Exception>
booleanN.nMatch
(Iterator<? extends T> iter, int atLeast, int atMost, Throwables.Predicate<? super T, E> filter) static <T,
E extends Exception>
booleanN.nMatch
(T[] a, int atLeast, int atMost, Throwables.Predicate<? super T, E> filter) <E2 extends Exception>
booleanExceptionalStream.noneMatch
(Throwables.Predicate<? super T, E2> predicate) static <T,
E extends Exception>
booleanN.noneMatch
(Iterable<? extends T> c, Throwables.Predicate<? super T, E> filter) static <T,
E extends Exception>
booleanN.noneMatch
(Iterator<? extends T> iter, Throwables.Predicate<? super T, E> filter) static <T,
E extends Exception>
booleanN.noneMatch
(T[] a, Throwables.Predicate<? super T, E> filter) static <T,
E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.not
(Throwables.Predicate<T, E> predicate) static <K,
V, E extends Exception>
ExceptionalStream<K,E> ExceptionalStream.ofKeys
(Map<K, V> map, Throwables.Predicate<? super V, E> valueFilter) static <K,
V, E extends Exception>
ExceptionalStream<V,E> ExceptionalStream.ofValues
(Map<K, V> map, Throwables.Predicate<? super K, E> keyFilter) static <T,
E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.p
(Throwables.Predicate<T, E> predicate) ExceptionalStream.partitionBy
(Throwables.Predicate<? super T, E> predicate) <D> ExceptionalStream<Map.Entry<Boolean,
D>, E> ExceptionalStream.partitionBy
(Throwables.Predicate<? super T, E> predicate, Collector<? super T, ?, D> downstream) ExceptionalStream.partitionTo
(Throwables.Predicate<? super T, E2> predicate) ExceptionalStream.partitionTo
(Throwables.Predicate<? super T, E2> predicate, Collector<? super T, ?, D> downstream) ExceptionalStream.peekIf
(Throwables.Predicate<? super T, E> predicate, Throwables.Consumer<? super T, E> action) static <T> Predicate<T>
Fn.pp
(Throwables.Predicate<T, ? extends Exception> predicate) <E2 extends Exception>
u.Optional<T>ExceptionalStream.reduceUntil
(Throwables.BinaryOperator<T, E2> accumulator, Throwables.Predicate<? super T, E2> conditionToBreak) <U,
E2 extends Exception>
UExceptionalStream.reduceUntil
(U identity, Throwables.BiFunction<U, ? super T, U, E2> accumulator, Throwables.Predicate<? super U, E2> conditionToBreak) <X extends Exception>
booleanMultimap.removeAllIf
(Throwables.Predicate<? super K, X> predicate) Remove all the values associated with keys which satisfy the specifiedpredicate
.<X extends Exception>
booleanMultimap.removeAllIf
(Collection<?> values, Throwables.Predicate<? super K, X> predicate) Remove the specified values (all occurrences) from the value set associated with keys which satisfy the specifiedpredicate
.<E extends Exception>
booleanLongMultiset.removeAllOccurrencesIf
(Throwables.Predicate<? super T, E> predicate) Removes the all occurrences if.<E extends Exception>
booleanMultiset.removeAllOccurrencesIf
(Throwables.Predicate<? super T, E> predicate) Removes the all occurrences if.<E extends Exception>
Builder.DataSetBuilderBuilder.DataSetBuilder.removeColumns
(Throwables.Predicate<String, E> filter) Removes the columns.<E extends Exception>
voidDataSet.removeColumns
(Throwables.Predicate<String, E> filter) Remove the column(s) whose name matches the specifiedfilter
.<E extends Exception>
voidRowDataSet.removeColumns
(Throwables.Predicate<String, E> filter) Removes the columns.<E extends Exception>
booleanLongMultiset.removeIf
(long occurrences, Throwables.Predicate<? super T, E> predicate) Removes the if.static <K,
V, E extends Exception>
booleanMaps.removeIf
(Map<K, V> map, Throwables.Predicate<? super Map.Entry<K, V>, E> filter) Removes entries from the specifiedmap
by the the specifiedfilter
.<X extends Exception>
booleanMultimap.removeIf
(E value, Throwables.Predicate<? super K, X> predicate) Remove the specified value (one occurrence) from the value set associated with keys which satisfy the specifiedpredicate
.<E extends Exception>
booleanMultiset.removeIf
(int occurrencesToRemove, Throwables.Predicate<? super T, E> predicate) Removes the if.static <K,
V, E extends Exception>
booleanMaps.removeIfKey
(Map<K, V> map, Throwables.Predicate<? super K, E> filter) Removes entries from the specifiedmap
by the the specifiedfilter
.static <K,
V, E extends Exception>
booleanMaps.removeIfValue
(Map<K, V> map, Throwables.Predicate<? super V, E> filter) Removes entries from the specifiedmap
by the the specifiedfilter
.<X extends Exception>
booleanMultimap.replaceAllIf
(Throwables.Predicate<? super K, X> predicate, E oldValue, E newValue) Replace the specifiedoldValue
(all occurrences) from the value set associated with keys which satisfy the specifiedpredicate
with the specifiednewValue
.<X extends Exception>
booleanMultimap.replaceAllIf
(Throwables.Predicate<? super K, X> predicate, Collection<? extends E> oldValues, E newValue) Deprecated.<E extends Exception>
Builder.DataSetBuilderBuilder.DataSetBuilder.replaceIf
(Throwables.Predicate<?, E> predicate, Object newValue) <E extends Exception>
voidDataSet.replaceIf
(Throwables.Predicate<?, E> func, Object newValue) Replace all the values in this DataSet with the specified new value if it matches the specified condition.<E extends Exception>
booleanLongMultiset.replaceIf
(Throwables.Predicate<? super T, E> predicate, long newOccurrences) <X extends Exception>
booleanMultimap.replaceIf
(Throwables.Predicate<? super K, X> predicate, E oldValue, E newValue) Replace the specifiedoldValue
(one occurrence) from the value set associated with keys which satisfy the specifiedpredicate
with the specifiednewValue
.<E extends Exception>
booleanMultiset.replaceIf
(Throwables.Predicate<? super T, E> predicate, int newOccurrences) static <T,
E extends Exception>
intN.replaceIf
(List<T> c, Throwables.Predicate<? super T, E> predicate, T newValue) static <T,
E extends Exception>
intN.replaceIf
(T[] a, Throwables.Predicate<? super T, E> predicate, T newValue) <E extends Exception>
voidRowDataSet.replaceIf
(Throwables.Predicate<?, E> predicate, Object newValue) <X extends Exception>
voidSheet.replaceIf
(Throwables.Predicate<? super E, X> predicate, E newValue) <E extends Exception>
booleanHolder.setIf
(T newValue, Throwables.Predicate<? super T, E> predicate) Set with the specified new value and returnstrue
ifpredicate
returns true.ExceptionalStream.skipUntil
(Throwables.Predicate<? super T, ? extends E> predicate) N.skipUntil
(Iterable<? extends T> c, Throwables.Predicate<? super T, E> filter) N.skipUntil
(T[] a, Throwables.Predicate<? super T, E> filter) static <T,
E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.sp
(Object mutex, Throwables.Predicate<T, E> predicate) SynchronizedPredicate
.ExceptionalStream.splitAt
(Throwables.Predicate<? super T, ? extends E> where) ExceptionalStream.spsFilter
(int maxThreadNum, Throwables.Predicate<? super T, E> predicate) Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.ExceptionalStream.spsFilter
(Throwables.Predicate<? super T, E> predicate) Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.ExceptionalStream.spsFilterE
(int maxThreadNum, Throwables.Predicate<? super T, ? extends Exception> predicate) Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.ExceptionalStream.spsFilterE
(Throwables.Predicate<? super T, ? extends Exception> predicate) Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.ExceptionalStream.takeWhile
(Throwables.Predicate<? super T, ? extends E> predicate) N.takeWhile
(Iterable<? extends T> c, Throwables.Predicate<? super T, E> filter) N.takeWhile
(T[] a, Throwables.Predicate<? super T, E> filter) N.takeWhileInclusive
(Iterable<? extends T> c, Throwables.Predicate<? super T, E> filter) Take while inclusive.N.takeWhileInclusive
(T[] a, Throwables.Predicate<? super T, E> filter) Take while inclusive.<E extends Throwable>
booleanSynchronized.test
(Throwables.Predicate<? super T, E> predicate) static <T,
E extends Throwable>
booleanSynchronized.test
(T mutex, Throwables.Predicate<? super T, E> predicate) static <K,
V, E extends Throwable>
Throwables.Predicate<Map.Entry<K,V>, E> Fn.Fnn.testByKey
(Throwables.Predicate<? super K, E> predicate) static <K,
V, E extends Throwable>
Throwables.Predicate<Map.Entry<K,V>, E> Fn.Fnn.testByValue
(Throwables.Predicate<? super V, E> predicate) DataSet.toList
(int fromRowIndex, int toRowIndex, Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, String, E2> columnNameConverter, IntFunction<? extends T> rowSupplier) DataSet.toList
(Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, String, E2> columnNameConverter, IntFunction<? extends T> rowSupplier) DataSet.toList
(Class<? extends T> rowClass, int fromRowIndex, int toRowIndex, Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, String, E2> columnNameConverter) DataSet.toList
(Class<? extends T> rowClass, Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, String, E2> columnNameConverter) RowDataSet.toList
(int fromRowIndex, int toRowIndex, Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, String, E2> columnNameConverter, IntFunction<? extends T> rowSupplier) RowDataSet.toList
(Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, String, E2> columnNameConverter, IntFunction<? extends T> rowSupplier) RowDataSet.toList
(Class<? extends T> rowClass, int fromRowIndex, int toRowIndex, Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, String, E2> columnNameConverter) RowDataSet.toList
(Class<? extends T> rowClass, Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, String, E2> columnNameConverter) -
Uses of Throwables.Predicate in com.landawn.abacus.util.function
Modifier and TypeInterfaceDescriptioninterface
Predicate<T>
Refer to JDK API documentation at: https://docs.oracle.com/javase/8/docs/api/java/util/function/package-summary.htmlModifier and TypeMethodDescriptiondefault <E extends Throwable>
Throwables.Predicate<T,E> Predicate.toThrowable()
-
Uses of Throwables.Predicate in com.landawn.abacus.util.stream
Modifier and TypeMethodDescription<E extends Exception>
booleanEntryStream.allMatch
(Throwables.Predicate<? super Map.Entry<K, V>, E> predicate) abstract <E extends Exception>
booleanStream.allMatch
(Throwables.Predicate<? super T, E> predicate) <E extends Exception>
booleanEntryStream.anyMatch
(Throwables.Predicate<? super Map.Entry<K, V>, E> predicate) abstract <E extends Exception>
booleanStream.anyMatch
(Throwables.Predicate<? super T, E> predicate) Stream.filterE
(Throwables.Predicate<? super T, ? extends Exception> predicate) <E extends Exception>
u.Optional<Map.Entry<K,V>> EntryStream.findAny
(Throwables.Predicate<? super Map.Entry<K, V>, E> predicate) abstract <E extends Exception>
u.Optional<T>Stream.findAny
(Throwables.Predicate<? super T, E> predicate) Returns any element matched bypredicateForFirst
if found, Otherwise an emptyOptional<T>
will be returned.<E extends Exception>
u.Optional<Map.Entry<K,V>> EntryStream.findFirst
(Throwables.Predicate<? super Map.Entry<K, V>, E> predicate) abstract <E extends Exception>
u.Optional<T>Stream.findFirst
(Throwables.Predicate<? super T, E> predicate) Returns the first element matched bypredicateForFirst
if found, Otherwise an emptyOptional<T>
will be returned.<E extends Exception>
u.Optional<Map.Entry<K,V>> EntryStream.findFirstOrAny
(Throwables.Predicate<? super Map.Entry<K, V>, E> predicate) Returns the first element matched bypredicateForFirst
if found or the first element if this stream is not empty Otherwise an emptyOptional<Map.Entry<K, V>>
will be returned.abstract <E extends Exception>
u.Optional<T>Stream.findFirstOrAny
(Throwables.Predicate<? super T, E> predicateForFirst) Returns the first element matched bypredicateForFirst
if found or the first element if this stream is not empty Otherwise an emptyOptional<T>
will be returned.abstract <E extends Exception,
E2 extends Exception>
u.Optional<T>Stream.findFirstOrAny
(Throwables.Predicate<? super T, E> predicateForFirst, Throwables.Predicate<? super T, E2> predicateForAny) Returns the first element matched bypredicateForFirst
if found or any element matched bypredicateForAny
(If this is a sequential stream, it will always be the first element matched bypredicateForAny
).<E extends Exception>
u.Optional<Map.Entry<K,V>> EntryStream.findFirstOrLast
(Throwables.Predicate<? super Map.Entry<K, V>, E> predicate) Returns the first element matched bypredicateForFirst
if found or the last element if this stream is not empty Otherwise an emptyOptional<Map.Entry<K, V>>
will be returned.abstract <E extends Exception>
u.Optional<T>Stream.findFirstOrLast
(Throwables.Predicate<? super T, E> predicateForFirst) Returns the first element matched bypredicateForFirst
if found or the last element if this stream is not empty Otherwise an emptyOptional<T>
will be returned.abstract <E extends Exception,
E2 extends Exception>
u.Optional<T>Stream.findFirstOrLast
(Throwables.Predicate<? super T, E> predicateForFirst, Throwables.Predicate<? super T, E2> predicateForLast) <E extends Exception>
u.Optional<Map.Entry<K,V>> EntryStream.findLast
(Throwables.Predicate<? super Map.Entry<K, V>, E> predicate) abstract <E extends Exception>
u.Optional<T>Stream.findLast
(Throwables.Predicate<? super T, E> predicate) Returns the last element matched bypredicateForFirst
if found, Otherwise an emptyOptional<T>
will be returned.<E extends Exception>
booleanEntryStream.nMatch
(long atLeast, long atMost, Throwables.Predicate<? super Map.Entry<K, V>, E> predicate) abstract <E extends Exception>
booleanStream.nMatch
(long atLeast, long atMost, Throwables.Predicate<? super T, E> predicate) <E extends Exception>
booleanEntryStream.noneMatch
(Throwables.Predicate<? super Map.Entry<K, V>, E> predicate) abstract <E extends Exception>
booleanStream.noneMatch
(Throwables.Predicate<? super T, E> predicate) Stream.partitionTo
(Throwables.Predicate<? super T, E> predicate) Stream.partitionTo
(Throwables.Predicate<? super T, E> predicate, Collector<? super T, ?, D> downstream) abstract <E extends Exception>
u.Optional<T>Stream.reduceUntil
(Throwables.BinaryOperator<T, E> accumulator, Throwables.Predicate<? super T, E> conditionToBreak) Stream.reduceUntil
(T identity, Throwables.BinaryOperator<T, E> accumulator, Throwables.Predicate<? super T, E> conditionToBreak) abstract <U,
E extends Exception>
UStream.reduceUntil
(U identity, Throwables.BiFunction<U, ? super T, U, E> accumulator, Throwables.BinaryOperator<U, E> combiner, Throwables.Predicate<? super U, E> conditionToBreak) Stream.spsFilterE
(int maxThreadNum, Throwables.Predicate<? super T, ? extends Exception> predicate) Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.Stream.spsFilterE
(Throwables.Predicate<? super T, ? extends Exception> predicate) Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.