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>`

public abstract class BaseConsumerAdapter<A,T> extends Object implements FlowConsumerAdapter<T>
An abstract `FlowConsumerAdapter` that takes care setting/getting the adaptee and leaves only the `Consumer.accept(Object)` method to implement.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BaseConsumerAdapter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object obj)`
  `A`
  `getConsumerAdaptee()`
  `int`
  `hashCode()`
  `void`
  `setConsumerAdaptee(Object adaptee)`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

  ### Methods inherited from interface java.util.function.Consumer

  `accept, andThen`

- ## Constructor Details

  - ### BaseConsumerAdapter

    public BaseConsumerAdapter()

- ## Method Details

  - ### getConsumerAdaptee

    public A getConsumerAdaptee()
    Specified by:
      `getConsumerAdaptee` in interface `FlowConsumerAdapter<A>`

  - ### setConsumerAdaptee

    public void setConsumerAdaptee(Object adaptee)
    Specified by:
      `setConsumerAdaptee` in interface `FlowConsumerAdapter<A>`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`