Uses of Interface
com.landawn.abacus.util.Throwables.Consumer
Package
Description
-
Uses of Throwables.Consumer in com.landawn.abacus.util
Modifier and TypeClassDescriptionclass
class
Modifier and TypeMethodDescriptionstatic <K,
V, E extends Throwable>
Throwables.Consumer<Map.Entry<K,V>, E> Fn.Fnn.acceptByKey
(Throwables.Consumer<? super K, E> consumer) static <K,
V, E extends Throwable>
Throwables.Consumer<Map.Entry<K,V>, E> Fn.Fnn.acceptByValue
(Throwables.Consumer<? super V, E> consumer) static <A,
B, T, E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.c
(A a, B b, Throwables.TriConsumer<A, B, T, E> triConsumer) static <A,
T, E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.c
(A a, Throwables.BiConsumer<A, T, E> biConsumer) static <T,
E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.c
(Throwables.Consumer<T, E> predicate) static <A,
B, T, E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.cc
(A a, B b, TriConsumer<A, B, T> triConsumer) static <A,
T, E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.cc
(A a, BiConsumer<A, T> biConsumer) static <T,
E extends Throwable>
Throwables.Consumer<T,E> static <T extends AutoCloseable>
Throwables.Consumer<T,Exception> Fn.Fnn.close()
static <T extends AutoCloseable,
E extends Exception>
Throwables.Consumer<T,E> Fn.Fnn.closeQuietly()
static <T,
E extends Exception>
Throwables.Consumer<T,E> Fn.Fnn.doNothing()
static <K,
V, E extends Exception>
Throwables.Consumer<Map.Entry<K,V>, E> Fn.Entries.ec
(Throwables.BiConsumer<? super K, ? super V, E> c) static <T,
R, E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.f2c
(Throwables.Function<T, ? extends R, E> func) static <T,
E extends Throwable>
Throwables.Consumer<T,E> static <T,
E extends Exception>
Throwables.Consumer<T,E> Fn.Fnn.println()
static <T,
E extends Exception>
Throwables.Consumer<T,E> Fn.Fnn.rateLimiter
(double permitsPerSecond) Returns a statefulConsumer
.static <T,
E extends Exception>
Throwables.Consumer<T,E> Fn.Fnn.rateLimiter
(RateLimiter rateLimiter) Returns a statefulConsumer
.static <A,
T, E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.sc
(Object mutex, A a, Throwables.BiConsumer<A, T, E> biConsumer) SynchronizedConsumer
.static <T,
E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.sc
(Object mutex, Throwables.Consumer<T, E> consumer) SynchronizedConsumer
.static <T,
E extends Exception>
Throwables.Consumer<T,E> Fn.Fnn.sleep
(long millis) static <T,
E extends Exception>
Throwables.Consumer<T,E> Fn.Fnn.sleepUninterruptibly
(long millis) static <T> Throwables.Consumer<T,
Exception> Fn.Fnn.throwException
(String errorMessage) static <T,
E extends Exception>
Throwables.Consumer<T,E> Fn.Fnn.throwException
(Supplier<? extends E> excpetionSupplier) static <T> Throwables.Consumer<T,
IOException> Fn.Fnn.throwIOException
(String errorMessage) static <T> Throwables.Consumer<T,
RuntimeException> Fn.Fnn.throwRuntimeException
(String errorMessage) Modifier and TypeMethodDescription<E extends Exception>
voidBooleanList.accept
(Throwables.Consumer<? super BooleanList, E> action) Builder.accept
(Throwables.Consumer<? super T, E> consumer) <E extends Exception>
voidByteList.accept
(Throwables.Consumer<? super ByteList, E> action) <E extends Exception>
voidCharList.accept
(Throwables.Consumer<? super CharList, E> action) <E extends Exception>
voidDataSet.accept
(Throwables.Consumer<? super DataSet, E> action) <E extends Exception>
voidDoubleList.accept
(Throwables.Consumer<? super DoubleList, E> action) <E extends Exception>
voidFloatList.accept
(Throwables.Consumer<? super FloatList, E> action) <E extends Exception>
voidHolder.accept
(Throwables.Consumer<? super T, E> action) <E extends Exception>
voidIntList.accept
(Throwables.Consumer<? super IntList, E> action) <E extends Exception>
voidLongList.accept
(Throwables.Consumer<? super LongList, E> action) <E extends Exception>
voidLongMultiset.accept
(Throwables.Consumer<? super LongMultiset<T>, E> action) <X extends Exception>
void<E extends Exception>
voidMultiset.accept
(Throwables.Consumer<? super Multiset<T>, E> action) <E extends Exception>
voidNoCachingNoUpdating.DisposableArray.accept
(Throwables.Consumer<? super T[], E> action) <E extends Exception>
voidNoCachingNoUpdating.DisposableBooleanArray.accept
(Throwables.Consumer<? super boolean[], E> action) <E extends Exception>
voidNoCachingNoUpdating.DisposableByteArray.accept
(Throwables.Consumer<? super byte[], E> action) <E extends Exception>
voidNoCachingNoUpdating.DisposableCharArray.accept
(Throwables.Consumer<? super char[], E> action) <E extends Exception>
voidNoCachingNoUpdating.DisposableDeque.accept
(Throwables.Consumer<? super Deque<T>, E> action) <E extends Exception>
voidNoCachingNoUpdating.DisposableDoubleArray.accept
(Throwables.Consumer<? super double[], E> action) <E extends Exception>
voidNoCachingNoUpdating.DisposableEntry.accept
(Throwables.Consumer<? super NoCachingNoUpdating.DisposableEntry<K, V>, E> action) <E extends Exception>
voidNoCachingNoUpdating.DisposableFloatArray.accept
(Throwables.Consumer<? super float[], E> action) <E extends Exception>
voidNoCachingNoUpdating.DisposableIntArray.accept
(Throwables.Consumer<? super int[], E> action) <E extends Exception>
voidNoCachingNoUpdating.DisposableLongArray.accept
(Throwables.Consumer<? super long[], E> action) <E extends Exception>
voidNoCachingNoUpdating.DisposableShortArray.accept
(Throwables.Consumer<? super short[], E> action) <E extends Exception>
voidPair.accept
(Throwables.Consumer<? super Pair<L, R>, E> action) abstract <E extends Exception>
voidPrimitiveList.accept
(Throwables.Consumer<? super L, E> action) <E extends Exception>
voidRowDataSet.accept
(Throwables.Consumer<? super DataSet, E> action) <X extends Exception>
void<E extends Exception>
voidShortList.accept
(Throwables.Consumer<? super ShortList, E> action) <E extends Throwable>
voidSynchronized.accept
(Throwables.Consumer<? super T, E> consumer) static <T,
E extends Throwable>
voidSynchronized.accept
(T mutex, Throwables.Consumer<? super T, E> consumer) <E extends Exception>
void<E extends Exception>
voidTuple.accept
(Throwables.Consumer<? super TP, E> action) static <K,
V, E extends Throwable>
Throwables.Consumer<Map.Entry<K,V>, E> Fn.Fnn.acceptByKey
(Throwables.Consumer<? super K, E> consumer) static <K,
V, E extends Throwable>
Throwables.Consumer<Map.Entry<K,V>, E> Fn.Fnn.acceptByValue
(Throwables.Consumer<? super V, E> consumer) BooleanList.acceptIfNotEmpty
(Throwables.Consumer<? super BooleanList, E> action) Accept if not empty.ByteList.acceptIfNotEmpty
(Throwables.Consumer<? super ByteList, E> action) Accept if not empty.CharList.acceptIfNotEmpty
(Throwables.Consumer<? super CharList, E> action) Accept if not empty.DoubleList.acceptIfNotEmpty
(Throwables.Consumer<? super DoubleList, E> action) Accept if not empty.ExceptionalStream.acceptIfNotEmpty
(Throwables.Consumer<? super ExceptionalStream<T, E>, E2> action) FloatList.acceptIfNotEmpty
(Throwables.Consumer<? super FloatList, E> action) Accept if not empty.IntList.acceptIfNotEmpty
(Throwables.Consumer<? super IntList, E> action) Accept if not empty.LongList.acceptIfNotEmpty
(Throwables.Consumer<? super LongList, E> action) Accept if not empty.LongMultiset.acceptIfNotEmpty
(Throwables.Consumer<? super LongMultiset<T>, E> action) Accept if not empty.Multimap.acceptIfNotEmpty
(Throwables.Consumer<? super Multimap<K, E, V>, X> action) Accept if not empty.Multiset.acceptIfNotEmpty
(Throwables.Consumer<? super Multiset<T>, E> action) Accept if not empty.PrimitiveList.acceptIfNotEmpty
(Throwables.Consumer<? super L, E> action) Accept if not empty.ShortList.acceptIfNotEmpty
(Throwables.Consumer<? super ShortList, E> action) Accept if not empty.<E extends Exception>
voidHolder.acceptIfNotNull
(Throwables.Consumer<? super T, E> action) Deprecated.ExceptionalStream.asyncRun
(Throwables.Consumer<? super ExceptionalStream<T, E>, ? extends Exception> terminalAction) ExceptionalStream.asyncRun
(Throwables.Consumer<? super ExceptionalStream<T, E>, ? extends Exception> terminalAction, Executor executor) static <T,
E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.c
(Throwables.Consumer<T, E> predicate) static <T,
E extends Throwable>
Throwables.Function<T,Void, E> Fn.Fnn.c2f
(Throwables.Consumer<T, E> consumer) static <T,
R, E extends Throwable>
Throwables.Function<T,R, E> Fn.Fnn.c2f
(Throwables.Consumer<T, E> consumer, R valueToReturn) Fn.cc
(Throwables.Consumer<T, E> consumer) ExceptionalStream.dropWhile
(Throwables.Predicate<? super T, ? extends E> predicate, Throwables.Consumer<? super T, ? extends E> actionOnDroppedItem) ExceptionalStream.filter
(Throwables.Predicate<? super T, ? extends E> predicate, Throwables.Consumer<? super T, ? extends E> actionOnDroppedItem) <X extends Exception>
voidMultimap.flatForEachValue
(Throwables.Consumer<? super E, X> action) Flat for each value.<E extends Exception>
voidDataSet.forEach
(int fromRowIndex, int toRowIndex, Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) Performs the given action for each row of theDataSet
until all rows have been processed or the action throws an exception.<E extends Exception>
voidDataSet.forEach
(Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) Performs the given action for each row of theDataSet
until all rows have been processed or the action throws an exception.<E extends Exception>
voidDataSet.forEach
(Collection<String> columnNames, int fromRowIndex, int toRowIndex, Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) Performs the given action for each row of theDataSet
until all rows have been processed or the action throws an exception.<E extends Exception>
voidDataSet.forEach
(Collection<String> columnNames, Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) Performs the given action for each row of theDataSet
until all rows have been processed or the action throws an exception.<E2 extends Exception>
voidExceptionalStream.forEach
(Throwables.Consumer<? super T, E2> action) ExceptionalStream.forEach
(Throwables.Consumer<? super T, E2> action, Throwables.Runnable<E3> onComplete) <E extends Exception>
voidImmutableArray.forEach
(Throwables.Consumer<T, E> consumer) static <T,
E extends Exception>
voidIterators.forEach
(Collection<? extends Iterator<? extends T>> iterators, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<? super T, E> elementParser) Iterators.forEach
(Collection<? extends Iterator<? extends T>> iterators, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<? super T, E> elementParser, Throwables.Runnable<E2> onComplete) static <T,
E extends Exception>
voidIterators.forEach
(Collection<? extends Iterator<? extends T>> iterators, long offset, long count, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<? super T, E> elementParser) Iterators.forEach
(Collection<? extends Iterator<? extends T>> iterators, long offset, long count, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<? super T, E> elementParser, Throwables.Runnable<E2> onComplete) Parse the elements in the specified iterators one by one.static <T,
E extends Exception>
voidIterators.forEach
(Collection<? extends Iterator<? extends T>> iterators, long offset, long count, Throwables.Consumer<? super T, E> elementParser) Iterators.forEach
(Collection<? extends Iterator<? extends T>> iterators, long offset, long count, Throwables.Consumer<? super T, E> elementParser, Throwables.Runnable<E2> onComplete) static <T,
E extends Exception>
voidIterators.forEach
(Collection<? extends Iterator<? extends T>> iterators, Throwables.Consumer<? super T, E> elementParser) Iterators.forEach
(Collection<? extends Iterator<? extends T>> iterators, Throwables.Consumer<? super T, E> elementParser, Throwables.Runnable<E2> onComplete) static <T,
E extends Exception>
voidIterators.forEach
(Iterator<? extends T> iter, long offset, long count, int processThreadNum, int queueSize, Throwables.Consumer<? super T, E> elementParser) Iterators.forEach
(Iterator<? extends T> iter, long offset, long count, int processThreadNum, int queueSize, Throwables.Consumer<? super T, E> elementParser, Throwables.Runnable<E2> onComplete) Parse the elements in the specified iterators one by one.static <T,
E extends Exception>
voidIterators.forEach
(Iterator<? extends T> iter, long offset, long count, Throwables.Consumer<? super T, E> elementParser) Iterators.forEach
(Iterator<? extends T> iter, long offset, long count, Throwables.Consumer<? super T, E> elementParser, Throwables.Runnable<E2> onComplete) static <T,
E extends Exception>
voidIterators.forEach
(Iterator<? extends T> iter, Throwables.Consumer<? super T, E> elementParser) Iterators.forEach
(Iterator<? extends T> iter, Throwables.Consumer<? super T, E> elementParser, Throwables.Runnable<E2> onComplete) <E extends Exception>
voidLongMultiset.forEach
(Throwables.Consumer<? super T, E> action) <E extends Exception>
voidMultiset.forEach
(Throwables.Consumer<? super T, E> action) static <T,
E extends Exception>
voidN.forEach
(Iterable<? extends T> c, Throwables.Consumer<? super T, E> action) static <T,
E extends Exception>
voidN.forEach
(Collection<? extends T> c, int fromIndex, int toIndex, Throwables.Consumer<? super T, E> action) Mostly it's designed for one-step operation to complete the operation in one step.static <T,
E extends Exception>
voidN.forEach
(Iterator<? extends T> iter, Throwables.Consumer<? super T, E> action) static <K,
V, E extends Exception>
voidN.forEach
(Map<K, V> map, Throwables.Consumer<? super Map.Entry<K, V>, E> action) static <T,
E extends Exception>
voidN.forEach
(T[] a, int fromIndex, int toIndex, Throwables.Consumer<? super T, E> action) static <T,
E extends Exception>
voidN.forEach
(T[] a, Throwables.Consumer<? super T, E> action) <E extends Exception>
voidNoCachingNoUpdating.DisposableArray.forEach
(Throwables.Consumer<? super T, E> action) <E extends Exception>
voidNoCachingNoUpdating.DisposableDeque.forEach
(Throwables.Consumer<? super T, E> action) <E extends Exception>
voidPair.forEach
(Throwables.Consumer<?, E> comsumer) <E extends Exception>
voidRowDataSet.forEach
(int fromRowIndex, int toRowIndex, Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) <E extends Exception>
voidRowDataSet.forEach
(Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) <E extends Exception>
voidRowDataSet.forEach
(Collection<String> columnNames, int fromRowIndex, int toRowIndex, Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) <E extends Exception>
voidRowDataSet.forEach
(Collection<String> columnNames, Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) <E extends Exception>
voidTriple.forEach
(Throwables.Consumer<?, E> comsumer) abstract <E extends Exception>
voidTuple.forEach
(Throwables.Consumer<?, E> consumer) <E extends Exception>
voidTuple.Tuple1.forEach
(Throwables.Consumer<?, E> consumer) <E extends Exception>
voidTuple.Tuple2.forEach
(Throwables.Consumer<?, E> consumer) <E extends Exception>
voidTuple.Tuple3.forEach
(Throwables.Consumer<?, E> consumer) <E extends Exception>
voidTuple.Tuple4.forEach
(Throwables.Consumer<?, E> consumer) <E extends Exception>
voidTuple.Tuple5.forEach
(Throwables.Consumer<?, E> consumer) <E extends Exception>
voidTuple.Tuple6.forEach
(Throwables.Consumer<?, E> consumer) <E extends Exception>
voidTuple.Tuple7.forEach
(Throwables.Consumer<?, E> consumer) <E extends Exception>
voidTuple.Tuple8.forEach
(Throwables.Consumer<?, E> consumer) <E extends Exception>
voidTuple.Tuple9.forEach
(Throwables.Consumer<?, E> consumer) <E2 extends Exception>
voidExceptionalStream.forEachInParallel
(Throwables.Consumer<? super T, E2> action, int threadNum) <E2 extends Exception>
voidExceptionalStream.forEachInParallel
(Throwables.Consumer<? super T, E2> action, int threadNum, Executor executor) <X extends Exception>
voidMultimap.forEachKey
(Throwables.Consumer<? super K, X> action) For each key.static <T,
E extends Exception>
voidN.forEachNonNull
(Iterable<T> c, Throwables.Consumer<? super T, E> action) For each non null.static <T,
E extends Exception>
voidN.forEachNonNull
(T[] a, Throwables.Consumer<? super T, E> action) For each non null.<E extends Exception>
voidLineIterator.foreachRemaining
(Throwables.Consumer<? super String, E> action) <E extends Exception>
voidObjIterator.foreachRemaining
(Throwables.Consumer<? super T, E> action) <E2 extends Exception>
voidExceptionalStream.forEachUntil
(MutableBoolean flagToBreak, Throwables.Consumer<? super T, E2> action) Iterate and executeaction
untilflagToBreak
is set true.<X extends Exception>
voidMultimap.forEachValue
(Throwables.Consumer<? super V, X> action) For each value.<E extends Exception>
voidContinuableFuture.getThenAccept
(long timeout, TimeUnit unit, Throwables.Consumer<? super T, E> action) Gets the then accept.<E extends Exception>
voidContinuableFuture.getThenAccept
(Throwables.Consumer<? super T, E> action) Gets the then accept.<E2 extends Throwable>
voidResult.ifFailure
(Throwables.Consumer<? super E, E2> actionOnFailure) Result.ifFailureOrElse
(Throwables.Consumer<? super E, E2> actionOnFailure, Throwables.Consumer<? super T, E3> actionOnSuccess) If failure or else.<E extends Exception>
voidHolder.ifNotNull
(Throwables.Consumer<? super T, E> action) If not null.<E extends Exception>
u.Nullable<T>u.Nullable.ifNotNull
(Throwables.Consumer<? super T, E> action) If not null.Holder.ifNotNullOrElse
(Throwables.Consumer<? super T, E> action, Throwables.Runnable<E2> emptyAction) If not null or else.<E extends Exception,
E2 extends Exception>
u.Nullable<T>u.Nullable.ifNotNullOrElse
(Throwables.Consumer<? super T, E> action, Throwables.Runnable<E2> emptyAction) If not null or else.N.ifOrElse
(boolean b, T init, Throwables.Consumer<? super T, E1> actionForTrue, Throwables.Consumer<? super T, E2> actionForFalse) If or else.<E extends Exception>
u.Nullable<T>u.Nullable.ifPresent
(Throwables.Consumer<? super T, E> action) <E extends Exception>
u.Optional<T>u.Optional.ifPresent
(Throwables.Consumer<? super T, E> action) <E extends Exception,
E2 extends Exception>
u.Nullable<T>u.Nullable.ifPresentOrElse
(Throwables.Consumer<? super T, E> action, Throwables.Runnable<E2> emptyAction) If present or else.<E extends Exception,
E2 extends Exception>
u.Optional<T>u.Optional.ifPresentOrElse
(Throwables.Consumer<? super T, E> action, Throwables.Runnable<E2> emptyAction) If present or else.<E2 extends Throwable>
voidResult.ifSuccess
(Throwables.Consumer<? super T, E2> actionOnSuccess) Result.ifSuccessOrElse
(Throwables.Consumer<? super T, E2> actionOnSuccess, Throwables.Consumer<? super E, E3> actionOnFailure) If success or else.ExceptionalStream.onEach
(Throwables.Consumer<? super T, ? extends E> action) ExceptionalStream.onEachE
(Throwables.Consumer<? super T, ? extends Exception> action) <U,
E extends Throwable>
voidIf.OrElse.orElse
(U init, Throwables.Consumer<? super U, E> action) static <E extends Exception>
voidIOUtil.parse
(File file, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(File file, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) static <E extends Exception>
voidIOUtil.parse
(File file, long lineOffset, long count, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(File file, long lineOffset, long count, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) Parse the specified files/directory line by line.static <E extends Exception>
voidIOUtil.parse
(File file, long lineOffset, long count, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(File file, long lineOffset, long count, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) Parse the specified files/directory line by line.static <E extends Exception>
voidIOUtil.parse
(File file, long lineOffset, long count, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(File file, long lineOffset, long count, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) static <E extends Exception>
voidIOUtil.parse
(File file, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(File file, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) static <E extends Exception>
voidIOUtil.parse
(InputStream is, long lineOffset, long count, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(InputStream is, long lineOffset, long count, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) Parse the specified Reader line by line.static <E extends Exception>
voidIOUtil.parse
(InputStream is, long lineOffset, long count, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(InputStream is, long lineOffset, long count, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) static <E extends Exception>
voidIOUtil.parse
(InputStream is, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(InputStream is, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) static <E extends Exception>
voidIOUtil.parse
(Reader reader, long lineOffset, long count, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(Reader reader, long lineOffset, long count, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) Parse the specified Reader line by line.static <E extends Exception>
voidIOUtil.parse
(Reader reader, long lineOffset, long count, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(Reader reader, long lineOffset, long count, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) static <E extends Exception>
voidIOUtil.parse
(Reader reader, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(Reader reader, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) static <E extends Exception>
voidIOUtil.parse
(List<File> files, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(List<File> files, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) static <E extends Exception>
voidIOUtil.parse
(List<File> files, long lineOffset, long count, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(List<File> files, long lineOffset, long count, int readThreadNum, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) Parse the specified files/directory line by line.static <E extends Exception>
voidIOUtil.parse
(List<File> files, long lineOffset, long count, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(List<File> files, long lineOffset, long count, int processThreadNum, int queueSize, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) Parse the specified files/directory line by line.static <E extends Exception>
voidIOUtil.parse
(List<File> files, long lineOffset, long count, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(List<File> files, long lineOffset, long count, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) static <E extends Exception>
voidIOUtil.parse
(List<File> files, Throwables.Consumer<String, E> lineParser) IOUtil.parse
(List<File> files, Throwables.Consumer<String, E> lineParser, Throwables.Runnable<E2> onComplete) ExceptionalStream.peek
(Throwables.Consumer<? super T, ? extends E> action) ExceptionalStream.peekFirst
(Throwables.Consumer<? super T, ? extends E> action) ExceptionalStream.peekIf
(Throwables.Predicate<? super T, E> predicate, Throwables.Consumer<? super T, E> action) ExceptionalStream.peekLast
(Throwables.Consumer<? super T, ? extends E> action) void
Try.run
(Throwables.Consumer<? super T, ? extends Exception> cmd) void
Try.run
(Throwables.Consumer<? super T, ? extends Exception> cmd, Consumer<? super Exception> actionOnError) <U,
E extends Exception>
ContinuableFuture<Void>ContinuableFuture.runAfterBoth
(ContinuableFuture<U> other, Throwables.Consumer<? super Tuple.Tuple4<T, ? super Exception, U, ? super Exception>, E> action) Run after both.<E extends Exception>
ContinuableFuture<Void>ContinuableFuture.runAfterEither
(ContinuableFuture<? extends T> other, Throwables.Consumer<? super T, E> action) Run after either.<E extends Exception>
ContinuableFuture<Void>ContinuableFuture.runAfterFirstSucceed
(ContinuableFuture<? extends T> other, Throwables.Consumer<? super T, E> action) Run after either.static <T,
E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.sc
(Object mutex, Throwables.Consumer<T, E> consumer) SynchronizedConsumer
.ExceptionalStream.spsOnEach
(int maxThreadNum, Throwables.Consumer<? super T, E> action) Temporarily switch the stream to parallel stream for operationonEach
and then switch back to sequence stream.ExceptionalStream.spsOnEach
(Throwables.Consumer<? super T, E> action) Temporarily switch the stream to parallel stream for operationonEach
and then switch back to sequence stream.ExceptionalStream.spsOnEachE
(int maxThreadNum, Throwables.Consumer<? super T, ? extends Exception> action) Temporarily switch the stream to parallel stream for operationonEach
and then switch back to sequence stream.ExceptionalStream.spsOnEachE
(Throwables.Consumer<? super T, ? extends Exception> action) Temporarily switch the stream to parallel stream for operationonEach
and then switch back to sequence stream.If.then
(U init, Throwables.Consumer<? super U, E> action) <E extends Exception>
ContinuableFuture<Void>ContinuableFuture.thenRun
(Throwables.Consumer<? super T, E> action) -
Uses of Throwables.Consumer in com.landawn.abacus.util.function
Modifier and TypeInterfaceDescriptioninterface
Consumer<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.Consumer<T,E> Consumer.toThrowable()
-
Uses of Throwables.Consumer in com.landawn.abacus.util.stream
Modifier and TypeMethodDescriptionBaseStream.acceptIfNotEmpty
(Throwables.Consumer<? super S, E> action) This is a terminal operation.EntryStream.acceptIfNotEmpty
(Throwables.Consumer<? super EntryStream<K, V>, E> action) Stream.asyncRun
(Throwables.Consumer<? super Stream<T>, ? extends Exception> terminalAction) Stream.asyncRun
(Throwables.Consumer<? super Stream<T>, ? extends Exception> terminalAction, Executor executor) <E extends Exception>
voidEntryStream.forEach
(Throwables.Consumer<? super Map.Entry<K, V>, E> action) abstract <E extends Exception>
voidStream.forEach
(Throwables.Consumer<? super T, E> action) Stream.forEach
(Throwables.Consumer<? super T, E> action, Throwables.Runnable<E2> onComplete) abstract <E extends Exception>
voidStream.forEachUntil
(MutableBoolean flagToBreak, Throwables.Consumer<? super T, E> action) Iterate and executeaction
untilflagToBreak
is set true.Stream.onEachE
(Throwables.Consumer<? super T, ? extends Exception> action) Stream.spsOnEachE
(int maxThreadNum, Throwables.Consumer<? super T, ? extends Exception> action) Temporarily switch the stream to parallel stream for operationonEach
and then switch back to sequence stream.Stream.spsOnEachE
(Throwables.Consumer<? super T, ? extends Exception> action) Temporarily switch the stream to parallel stream for operationonEach
and then switch back to sequence stream.
Holder.ifNotNull(com.landawn.abacus.util.Throwables.Consumer)