@Mutable public interface FailableCollector<INPUT,RESULT,COLLECT_EXCEPTION extends Exception,RESULT_EXCEPTION extends Exception> extends FailableConsumer<INPUT,COLLECT_EXCEPTION>
INPUT and produces a result of type RESULT.| Modifier and Type | Method and Description |
|---|---|
RESULT |
getResult()
Returns the result of this collector.
|
default @Nonnull Collector<INPUT,RESULT> |
suppressExceptions()
Returns a collector that suppresses the exceptions of this collector and returns null instead.
|
default @Nonnull Collector<INPUT,RESULT> |
suppressExceptions(@Nonnull Consumer<? super Exception> handler)
Returns a collector that suppresses the exceptions of this collector, passes them to the given exception handler and returns null instead.
|
default @Nonnull Collector<INPUT,RESULT> |
suppressExceptions(@Nonnull Consumer<? super Exception> handler,
RESULT defaultResult)
Returns a collector that suppresses the exceptions of this collector, passes them to the given exception handler and returns the given default result instead.
|
default @Nonnull Collector<INPUT,RESULT> |
suppressExceptions(RESULT defaultResult)
Returns a collector that suppresses the exceptions of this collector and returns the given default result instead.
|
default @Nonnull FailableCollector<INPUT,RESULT,COLLECT_EXCEPTION,RESULT_EXCEPTION> |
synchronize()
Returns a consumer that synchronizes on this consumer.
|
after, after, asFunction, before, compose, consume@Pure @Capturable RESULT getResult() throws RESULT_EXCEPTION extends Exception
RESULT_EXCEPTION extends Exception@Pure @Capturable @Nonnull default @Nonnull Collector<INPUT,RESULT> suppressExceptions(@Captured @Nonnull @Nonnull Consumer<? super Exception> handler, @Captured RESULT defaultResult)
@Pure @Capturable @Nonnull default @Nonnull Collector<INPUT,RESULT> suppressExceptions(@Captured @Nonnull @Nonnull Consumer<? super Exception> handler)
suppressExceptions in interface FailableConsumer<INPUT,COLLECT_EXCEPTION extends Exception>@Pure @Capturable @Nonnull default @Nonnull Collector<INPUT,RESULT> suppressExceptions(@Captured RESULT defaultResult)
@Pure @Capturable @Nonnull default @Nonnull Collector<INPUT,RESULT> suppressExceptions()
suppressExceptions in interface FailableConsumer<INPUT,COLLECT_EXCEPTION extends Exception>@Pure @Nonnull default @Nonnull FailableCollector<INPUT,RESULT,COLLECT_EXCEPTION,RESULT_EXCEPTION> synchronize()
FailableConsumersynchronize in interface FailableConsumer<INPUT,COLLECT_EXCEPTION extends Exception>Copyright © 2017. All rights reserved.