Interface IThrowFunction1<I,O,T extends Throwable>
-
- All Superinterfaces:
IConsumer
,IFunction<O>
,IFunctional
,IThrowConsumer1<I,T>
- All Known Subinterfaces:
IFunction1<I,O>
,IOptionalFunction<I,O>
- All Known Implementing Classes:
IFunction1.Identity
,IOptionalFunction.Empty
,IOptionalFunction.Overridden
,IOptionalFunction.Recursive
,IOptionalFunction.Restricted
,LiteralFunction1
,RecordingFunction
,TapFunction
,TeeFunction
,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 IThrowFunction1<I,O,T extends Throwable> extends IFunction<O>, IThrowConsumer1<I,T>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
accept(I i)
O
apply(I input)
static <I,O,T extends Throwable>
IThrowFunction1<I,O,T>create(IThrowFunction1<I,O,T> function)
static <V,T extends Throwable>
IThrowFunction1<V,V,T>identity()
default IThrowFunction1<I,O,T>
sync(Object lock)
default IThrowConsumer1<I,T>
toConsumer()
default <_O> IThrowFunction1<I,_O,T>
toFunction(_O retVal)
default IFunction1<I,O>
wrap(IFunction1<? super Throwable,? extends RuntimeException> wrapper)
default IThrowFunction1<I,O,T>
wrap(IRunnable pre, IRunnable post)
-
-
-
Method Detail
-
create
static <I,O,T extends Throwable> IThrowFunction1<I,O,T> create(IThrowFunction1<I,O,T> function)
-
identity
static <V,T extends Throwable> IThrowFunction1<V,V,T> identity()
-
sync
default IThrowFunction1<I,O,T> sync(Object lock)
-
toConsumer
default IThrowConsumer1<I,T> toConsumer()
- Specified by:
toConsumer
in interfaceIFunction<I>
-
toFunction
default <_O> IThrowFunction1<I,_O,T> toFunction(_O retVal)
- Specified by:
toFunction
in interfaceIConsumer
- Specified by:
toFunction
in interfaceIThrowConsumer1<I,O>
-
wrap
default IFunction1<I,O> wrap(IFunction1<? super Throwable,? extends RuntimeException> wrapper)
- Specified by:
wrap
in interfaceIThrowConsumer1<I,O>
-
-