Interface IFunction1<I,O>
-
- All Superinterfaces:
Consumer<I>
,Function<I,O>
,IConsumer
,IConsumer1<I>
,IFunction<O>
,IFunctional
,IThrowConsumer1<I,RuntimeException>
,IThrowFunction1<I,O,RuntimeException>
- All Known Subinterfaces:
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 IFunction1<I,O> extends Function<I,O>, IFunction<O>, IConsumer1<I>, IThrowFunction1<I,O,RuntimeException>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IFunction1.Identity<T>
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default void
accept(I i)
default <X> IFunction1<I,X>
andThen(IFunction1<? super O,? extends X> f)
default O
applyWithFallback(I... inputs)
static <I,O>
IFunction1<I,O>cast()
default Supplier<O>
compose(Supplier<? extends I> before)
static <I,O>
IFunction1<I,O>create(IFunction1<I,O> function)
static <I,O>
IFunction1<I,O>create(O constant)
default ISupplier<O>
curry(I input)
static <T> IFunction1<T,T>
identity()
static <I,O>
IFunction1<I,O>isInstanceOf(Class<O> type)
default <IL> IFunction1<IL,O>
lift(IFunction1<IL,? extends I> lift)
default <T> IFunction1<I,T>
lift(T equal, IFunction1<? super O,? extends T> lift)
static <I,O>
IFunction1<I,O>liftNull(IFunction1<? super I,? extends O> function)
static <I,O>
IFunction1<I,O>liftNull(IFunction1<? super I,? extends O> function, O other)
static <T> ToIntFunction<T>
liftNull(IFunction1<? super T,Integer> function, int other)
default IConsumer1<I>
noReturn()
default IFunction1<I,O>
override(O compare, O output)
default IFunction1<I,O>
sync(Object lock)
default IConsumer1<I>
toConsumer()
default <_O> IFunction1<I,_O>
toFunction(_O retVal)
default IFunction1<I,O>
wrap(IRunnable pre, IRunnable post)
-
Methods inherited from interface com.g2forge.alexandria.java.function.IConsumer1
andThen
-
Methods inherited from interface com.g2forge.alexandria.java.function.IThrowFunction1
apply, wrap
-
-
-
-
Method Detail
-
cast
static <I,O> IFunction1<I,O> cast()
-
create
static <I,O> IFunction1<I,O> create(IFunction1<I,O> function)
-
create
static <I,O> IFunction1<I,O> create(O constant)
-
identity
static <T> IFunction1<T,T> identity()
-
isInstanceOf
static <I,O> IFunction1<I,O> isInstanceOf(Class<O> type)
-
liftNull
static <I,O> IFunction1<I,O> liftNull(IFunction1<? super I,? extends O> function)
-
liftNull
static <I,O> IFunction1<I,O> liftNull(IFunction1<? super I,? extends O> function, O other)
-
liftNull
static <T> ToIntFunction<T> liftNull(IFunction1<? super T,Integer> function, int other)
-
accept
default void accept(I i)
- Specified by:
accept
in interfaceConsumer<I>
- Specified by:
accept
in interfaceIThrowConsumer1<I,O>
- Specified by:
accept
in interfaceIThrowFunction1<I,O,RuntimeException>
-
andThen
default <X> IFunction1<I,X> andThen(IFunction1<? super O,? extends X> f)
-
lift
default <IL> IFunction1<IL,O> lift(IFunction1<IL,? extends I> lift)
- Specified by:
lift
in interfaceIConsumer1<I>
-
lift
default <T> IFunction1<I,T> lift(T equal, IFunction1<? super O,? extends T> lift)
-
noReturn
default IConsumer1<I> noReturn()
-
override
default IFunction1<I,O> override(O compare, O output)
-
sync
default IFunction1<I,O> sync(Object lock)
- Specified by:
sync
in interfaceIConsumer
- Specified by:
sync
in interfaceIConsumer1<I>
- Specified by:
sync
in interfaceIThrowConsumer1<I,O>
- Specified by:
sync
in interfaceIThrowFunction1<I,O,RuntimeException>
-
toConsumer
default IConsumer1<I> toConsumer()
- Specified by:
toConsumer
in interfaceIFunction<I>
- Specified by:
toConsumer
in interfaceIThrowFunction1<I,O,RuntimeException>
-
toFunction
default <_O> IFunction1<I,_O> toFunction(_O retVal)
- Specified by:
toFunction
in interfaceIConsumer
- Specified by:
toFunction
in interfaceIConsumer1<I>
- Specified by:
toFunction
in interfaceIThrowConsumer1<I,O>
- Specified by:
toFunction
in interfaceIThrowFunction1<I,O,RuntimeException>
-
wrap
default IFunction1<I,O> wrap(IRunnable pre, IRunnable post)
- Specified by:
wrap
in interfaceIConsumer
- Specified by:
wrap
in interfaceIConsumer1<I>
- Specified by:
wrap
in interfaceIFunction<I>
- Specified by:
wrap
in interfaceIFunctional
- Specified by:
wrap
in interfaceIThrowConsumer1<I,O>
- Specified by:
wrap
in interfaceIThrowFunction1<I,O,RuntimeException>
-
-