Interface IThrowConsumer1<I,T extends Throwable>
-
- All Superinterfaces:
IConsumer
,IFunctional
- All Known Subinterfaces:
IConsumer1<I>
,IFunction1<I,O>
,IOptionalFunction<I,O>
,IThrowFunction1<I,O,T>
- All Known Implementing Classes:
IFunction1.Identity
,IOptionalFunction.Empty
,IOptionalFunction.Overridden
,IOptionalFunction.Recursive
,IOptionalFunction.Restricted
,LiteralFunction1
,RecordingFunction
,TapFunction
,TeeFunction
,TextUpdateBuilder
,TypeSwitch1
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IThrowConsumer1<I,T extends Throwable> extends IConsumer
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
accept(I input)
static <I,T extends Throwable>
IThrowConsumer1<I,T>create(IThrowConsumer1<I,T> function)
default IThrowConsumer1<I,T>
sync(Object lock)
default <O> IThrowFunction1<I,O,T>
toFunction(O retVal)
default IConsumer1<I>
wrap(IFunction1<? super Throwable,? extends RuntimeException> wrapper)
default IThrowConsumer1<I,T>
wrap(IRunnable pre, IRunnable post)
-
-
-
Method Detail
-
create
static <I,T extends Throwable> IThrowConsumer1<I,T> create(IThrowConsumer1<I,T> function)
-
toFunction
default <O> IThrowFunction1<I,O,T> toFunction(O retVal)
- Specified by:
toFunction
in interfaceIConsumer
-
wrap
default IConsumer1<I> wrap(IFunction1<? super Throwable,? extends RuntimeException> wrapper)
-
wrap
default IThrowConsumer1<I,T> wrap(IRunnable pre, IRunnable post)
- Specified by:
wrap
in interfaceIConsumer
- Specified by:
wrap
in interfaceIFunctional
-
-