Package com.norconex.commons.lang.flow
Class BaseConsumerAdapter<A,T>
java.lang.Object
com.norconex.commons.lang.flow.BaseConsumerAdapter<A,T>
- Type Parameters:
A- the adaptee type (the type adapted to a Consumer)T- the type being consumed by this consumer adapter
- All Implemented Interfaces:
FlowConsumerAdapter<T>,Consumer<T>
An abstract
FlowConsumerAdapter that takes care setting/getting
the adaptee and leaves only the Consumer.accept(Object) method to implement.-
Constructor Details
-
BaseConsumerAdapter
public BaseConsumerAdapter()
-
-
Method Details
-
getConsumerAdaptee
- Specified by:
getConsumerAdapteein interfaceFlowConsumerAdapter<A>
-
setConsumerAdaptee
- Specified by:
setConsumerAdapteein interfaceFlowConsumerAdapter<A>
-
toString
-
equals
-
hashCode
public int hashCode()
-