Uses of Interface
com.landawn.abacus.util.Throwables.BiPredicate
Package
Description
-
Uses of Throwables.BiPredicate in com.landawn.abacus.util
Modifier and TypeMethodDescriptionstatic <T,
U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.from
(BiPredicate<T, U> predicate) static <T,
U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.not
(Throwables.BiPredicate<T, U, E> biPredicate) static <A,
T, U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.p
(A a, Throwables.TriPredicate<A, T, U, E> triPredicate) static <T,
U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.p
(Throwables.BiPredicate<T, U, E> biPredicate) static <A,
T, U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.pp
(A a, TriPredicate<A, T, U> triPredicate) static <T,
U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.pp
(BiPredicate<T, U> biPredicate) static <T,
U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.sp
(Object mutex, Throwables.BiPredicate<T, U, E> biPredicate) SynchronizedBiPredicate
.Modifier and TypeMethodDescriptionJoiner.appendEntries
(Object bean, Throwables.BiPredicate<? super String, ?, E> filter) Joiner.appendEntries
(Map<K, V> m, Throwables.BiPredicate<? super K, ? super V, E> filter) ExceptionalStream.collapse
(Throwables.BiPredicate<? super T, ? super T, ? extends E> collapsible) ExceptionalStream.collapse
(Throwables.BiPredicate<? super T, ? super T, ? extends E> collapsible, Throwables.BiFunction<? super T, ? super T, T, ? extends E> mergeFunction) Merge series of adjacent elements which satisfy the given predicate using the merger function and return a new stream.<R> ExceptionalStream<R,
E> ExceptionalStream.collapse
(Throwables.BiPredicate<? super T, ? super T, ? extends E> collapsible, Throwables.Supplier<R, E> supplier, Throwables.BiConsumer<? super R, ? super T, ? extends E> accumulator) <C extends Collection<T>>
ExceptionalStream<C,E> ExceptionalStream.collapse
(Throwables.BiPredicate<? super T, ? super T, ? extends E> collapsible, Supplier<? extends C> supplier) <R> ExceptionalStream<R,
E> ExceptionalStream.collapse
(Throwables.BiPredicate<? super T, ? super T, ? extends E> collapsible, Collector<? super T, ?, R> collector) <U> ExceptionalStream<U,
E> ExceptionalStream.collapse
(Throwables.BiPredicate<? super T, ? super T, ? extends E> collapsible, U init, Throwables.BiFunction<U, ? super T, U, ? extends E> op) static <E extends Exception>
voidIOUtil.copyFileToDirectory
(File srcFile, File destDir, boolean preserveFileDate, Throwables.BiPredicate<? super File, ? super File, E> filter) Copy the specifiedscrFile
if it's a file or its sub files/directories if it's a directory to the targetdestDir
with the specifiedfilter
.static <E extends Exception>
booleanIOUtil.deleteFiles
(File dir, Throwables.BiPredicate<? super File, ? super File, E> filter) Delete the specifieddir
if it's a file or its sub files/directories if it's a directory with the specified filter.static <K,
V, E extends Exception>
Throwables.Predicate<Map.Entry<K,V>, E> Fn.Entries.ep
(Throwables.BiPredicate<? super K, ? super V, E> p) DataSet.filter
(Tuple.Tuple2<String, String> columnNames, int fromRowIndex, int toRowIndex, Throwables.BiPredicate<?, ?, E> filter) DataSet.filter
(Tuple.Tuple2<String, String> columnNames, int fromRowIndex, int toRowIndex, Throwables.BiPredicate<?, ?, E> filter, int max) DataSet.filter
(Tuple.Tuple2<String, String> columnNames, Throwables.BiPredicate<?, ?, E> filter) DataSet.filter
(Tuple.Tuple2<String, String> columnNames, Throwables.BiPredicate<?, ?, E> filter, int max) <X extends Exception>
ListMultimap<K,E> ListMultimap.filter
(Throwables.BiPredicate<? super K, ? super List<E>, X> filter) <E extends Exception>
LongMultiset<T>LongMultiset.filter
(Throwables.BiPredicate<? super T, Long, E> filter) Maps.filter
(Map<K, V> map, Throwables.BiPredicate<? super K, ? super V, E> predicate) Multimap.filter
(Throwables.BiPredicate<? super K, ? super V, X> filter) Multiset.filter
(Throwables.BiPredicate<? super T, Integer, E> filter) <E extends Exception>
u.Optional<Pair<L,R>> Pair.filter
(Throwables.BiPredicate<? super L, ? super R, E> predicate) RowDataSet.filter
(Tuple.Tuple2<String, String> columnNames, int fromRowIndex, int toRowIndex, Throwables.BiPredicate<?, ?, E> filter) RowDataSet.filter
(Tuple.Tuple2<String, String> columnNames, int fromRowIndex, int toRowIndex, Throwables.BiPredicate<?, ?, E> filter, int max) RowDataSet.filter
(Tuple.Tuple2<String, String> columnNames, Throwables.BiPredicate<?, ?, E> filter) RowDataSet.filter
(Tuple.Tuple2<String, String> columnNames, Throwables.BiPredicate<?, ?, E> filter, int max) <X extends Exception>
SetMultimap<K,E> SetMultimap.filter
(Throwables.BiPredicate<? super K, ? super Set<E>, X> filter) <E extends Exception>
u.Optional<Tuple.Tuple2<T1,T2>> Tuple.Tuple2.filter
(Throwables.BiPredicate<? super T1, ? super T2, E> predicate) ClassUtil.getPropNames
(Object bean, Throwables.BiPredicate<Object, com.landawn.abacus.type.Type<Object>, E> propValueFilter) IOUtil.list
(File parentPath, boolean recursively, Throwables.BiPredicate<? super File, ? super File, E> filter) IOUtil.listFiles
(File parentPath, boolean recursively, Throwables.BiPredicate<? super File, ? super File, E> filter) static <T,
U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.not
(Throwables.BiPredicate<T, U, E> biPredicate) static <K,
V, E extends Exception>
ExceptionalStream<K,E> ExceptionalStream.ofKeys
(Map<K, V> map, Throwables.BiPredicate<? super K, ? super V, E> filter) static <K,
V, E extends Exception>
ExceptionalStream<V,E> ExceptionalStream.ofValues
(Map<K, V> map, Throwables.BiPredicate<? super K, ? super V, E> filter) static <A,
T, E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.p
(A a, Throwables.BiPredicate<A, T, E> biPredicate) static <T,
U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.p
(Throwables.BiPredicate<T, U, E> biPredicate) ExceptionalStream.peekIf
(Throwables.BiPredicate<? super T, ? super Long, E> predicate, Consumer<? super T> action) Fn.Entries.pp
(Throwables.BiPredicate<? super K, ? super V, ? extends Exception> p) static <A,
T> Predicate<T> Fn.pp
(A a, Throwables.BiPredicate<A, T, ? extends Exception> biPredicate) static <T,
U> BiPredicate<T, U> Fn.pp
(Throwables.BiPredicate<T, U, ? extends Exception> biPredicate) <X extends Exception>
booleanMultimap.removeAllIf
(Throwables.BiPredicate<? super K, ? super V, X> predicate) Remove all the values associated with keys which satisfy the specifiedpredicate
.<X extends Exception>
booleanMultimap.removeAllIf
(Collection<?> values, Throwables.BiPredicate<? super K, ? super V, 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.BiPredicate<? super T, ? super Long, E> predicate) Removes the all occurrences if.<E extends Exception>
booleanMultiset.removeAllOccurrencesIf
(Throwables.BiPredicate<? super T, ? super Integer, E> predicate) Removes the all occurrences if.<E extends Exception>
booleanLongMultiset.removeIf
(long occurrences, Throwables.BiPredicate<? super T, ? super Long, E> predicate) Removes the if.<X extends Exception>
booleanMultimap.removeIf
(E value, Throwables.BiPredicate<? super K, ? super V, 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.BiPredicate<? super T, ? super Integer, E> predicate) Removes the if.<X extends Exception>
booleanMultimap.replaceAllIf
(Throwables.BiPredicate<? super K, ? super V, 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.BiPredicate<? super K, ? super V, X> predicate, Collection<? extends E> oldValues, E newValue) Deprecated.<E extends Exception>
booleanLongMultiset.replaceIf
(Throwables.BiPredicate<? super T, ? super Long, E> predicate, long newOccurrences) <X extends Exception>
booleanReplace the specifiedoldValue
(one occurrence) from the value set associated with keys which satisfy the specifiedpredicate
with the specifiednewValue
.<E extends Exception>
booleanMultiset.replaceIf
(Throwables.BiPredicate<? super T, ? super Integer, E> predicate, int newOccurrences) <E extends Exception>
booleanHolder.setIf
(T newValue, Throwables.BiPredicate<? super T, ? super T, E> predicate) Deprecated.<E extends Exception>
booleanSet to the specifiednewLeft
and returnstrue
ifpredicate
returns true.<E extends Exception>
booleanSet to the specifiednewLeft
and returnstrue
ifpredicate
returns true.<E extends Exception>
booleanTriple.setMiddleIf
(M newMiddle, Throwables.BiPredicate<? super Triple<L, M, R>, ? super M, E> predicate) Set to the specifiednewMiddle
and returnstrue
ifpredicate
returns true.<E extends Exception>
booleanPair.setRightIf
(R newRight, Throwables.BiPredicate<? super Pair<L, R>, ? super R, E> predicate) Set to the specifiednewRight
and returnstrue
ifpredicate
returns true.<E extends Exception>
booleanTriple.setRightIf
(R newRight, Throwables.BiPredicate<? super Triple<L, M, R>, ? super R, E> predicate) Set to the specifiednewRight
and returnstrue
ifpredicate
returns true.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,
U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.sp
(Object mutex, Throwables.BiPredicate<T, U, E> biPredicate) SynchronizedBiPredicate
.static <T,
U, E extends Throwable>
booleanSynchronized.test
(T mutex, U u, Throwables.BiPredicate<? super T, ? super U, E> predicate) -
Uses of Throwables.BiPredicate in com.landawn.abacus.util.function
Modifier and TypeInterfaceDescriptioninterface
BiPredicate<T,
U> 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.BiPredicate<T,U, E> BiPredicate.toThrowable()
-
Uses of Throwables.BiPredicate in com.landawn.abacus.util.stream
Modifier and TypeMethodDescription<E extends Exception>
booleanEntryStream.allMatch
(Throwables.BiPredicate<? super K, ? super V, E> predicate) <E extends Exception>
booleanEntryStream.anyMatch
(Throwables.BiPredicate<? super K, ? super V, E> predicate) <E extends Exception>
u.Optional<Map.Entry<K,V>> EntryStream.findAny
(Throwables.BiPredicate<? super K, ? super V, E> predicate) <E extends Exception>
u.Optional<Map.Entry<K,V>> EntryStream.findFirst
(Throwables.BiPredicate<? super K, ? super V, E> predicate) <E extends Exception>
u.Optional<Map.Entry<K,V>> EntryStream.findFirstOrAny
(Throwables.BiPredicate<? super K, ? super 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.<E extends Exception>
u.Optional<Map.Entry<K,V>> EntryStream.findFirstOrLast
(Throwables.BiPredicate<? super K, ? super 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 <U,
E extends Exception, E2 extends Exception>
u.Optional<T>Stream.findFirstOrLast
(Function<? super T, U> preFunc, Throwables.BiPredicate<? super T, ? super U, E> predicateForFirst, Throwables.BiPredicate<? super T, ? super U, E2> predicateForLast)
This method only runs sequentially, even in parallel stream.abstract <U,
E extends Exception, E2 extends Exception>
u.Optional<T>Stream.findFirstOrLast
(U init, Throwables.BiPredicate<? super T, ? super U, E> predicateForFirst, Throwables.BiPredicate<? super T, ? super U, E2> predicateForLast)
This method only runs sequentially, even in parallel stream.<E extends Exception>
u.Optional<Map.Entry<K,V>> EntryStream.findLast
(Throwables.BiPredicate<? super K, ? super V, E> predicate) <E extends Exception>
booleanEntryStream.nMatch
(long atLeast, long atMost, Throwables.BiPredicate<? super K, ? super V, E> predicate) <E extends Exception>
booleanEntryStream.noneMatch
(Throwables.BiPredicate<? super K, ? super V, E> predicate)