Package pl.morgwai.base.guice.scopes
Class ContextBoundBiConsumer<T,U>
- java.lang.Object
-
- pl.morgwai.base.guice.scopes.ContextBoundClosure<BiConsumer<T,U>>
-
- pl.morgwai.base.guice.scopes.ContextBoundBiConsumer<T,U>
-
- All Implemented Interfaces:
BiConsumer<T,U>
public class ContextBoundBiConsumer<T,U> extends ContextBoundClosure<BiConsumer<T,U>> implements BiConsumer<T,U>
A decorator that will execute its wrappedBiConsumer
within supplied contexts.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class pl.morgwai.base.guice.scopes.ContextBoundClosure
ContextBoundClosure.CallableWrapper<T>, ContextBoundClosure.RunnableWrapper
-
-
Field Summary
-
Fields inherited from class pl.morgwai.base.guice.scopes.ContextBoundClosure
boundClosure, contexts
-
-
Constructor Summary
Constructors Constructor Description ContextBoundBiConsumer(List<TrackableContext<?>> contexts, BiConsumer<T,U> consumerToBind)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(T param1, U param2)
-
Methods inherited from class pl.morgwai.base.guice.scopes.ContextBoundClosure
getBoundClosure, getContexts, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
-
-
-
Constructor Detail
-
ContextBoundBiConsumer
public ContextBoundBiConsumer(List<TrackableContext<?>> contexts, BiConsumer<T,U> consumerToBind)
-
-