Interface IConsumer1<I>
-
- All Superinterfaces:
Consumer<I>
,IConsumer
,IFunctional
,IThrowConsumer1<I,RuntimeException>
- 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
,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 IConsumer1<I> extends Consumer<I>, IConsumer, IThrowConsumer1<I,RuntimeException>
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default IConsumer1<I>
andThen(Consumer<? super I> after)
static <I> IConsumer1<I>
create(IConsumer1<I> consumer)
default IRunnable
curry(I input)
static <I> IConsumer1<I>
fanOut(IConsumer1<? super I>... consumers)
static <I> IConsumer1<I>
ignore()
default <IL> IConsumer1<IL>
lift(IFunction1<IL,? extends I> lift)
static <I> IConsumer1<I>
once(IConsumer1<I> consumer)
default IConsumer1<I>
sync(Object lock)
default <O> IFunction1<I,O>
toFunction(O retVal)
default IConsumer1<I>
wrap(IRunnable pre, IRunnable post)
-
Methods inherited from interface com.g2forge.alexandria.java.function.IThrowConsumer1
accept, wrap
-
-
-
-
Method Detail
-
create
static <I> IConsumer1<I> create(IConsumer1<I> consumer)
-
fanOut
@SafeVarargs static <I> IConsumer1<I> fanOut(IConsumer1<? super I>... consumers)
-
ignore
static <I> IConsumer1<I> ignore()
-
once
static <I> IConsumer1<I> once(IConsumer1<I> consumer)
-
andThen
default IConsumer1<I> andThen(Consumer<? super I> after)
-
lift
default <IL> IConsumer1<IL> lift(IFunction1<IL,? extends I> lift)
-
sync
default IConsumer1<I> sync(Object lock)
- Specified by:
sync
in interfaceIConsumer
- Specified by:
sync
in interfaceIThrowConsumer1<I,RuntimeException>
-
toFunction
default <O> IFunction1<I,O> toFunction(O retVal)
- Specified by:
toFunction
in interfaceIConsumer
- Specified by:
toFunction
in interfaceIThrowConsumer1<I,RuntimeException>
-
wrap
default IConsumer1<I> wrap(IRunnable pre, IRunnable post)
- Specified by:
wrap
in interfaceIConsumer
- Specified by:
wrap
in interfaceIFunctional
- Specified by:
wrap
in interfaceIThrowConsumer1<I,RuntimeException>
-
-