Package io.rong.imkit.base

## Class SingleDataHandler

- All Implemented Interfaces:

      public abstract class SingleDataHandler<T>

  业务逻辑处理-包含数据回调

  Since:

    5.10.4

  Author:

    rongcloud

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SingleDataHandler()` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `stop()` |
    `final void` | `)>addDataChangeListener(OnDataChangeListener<T> onDataChangeListener)` | 设置数据改变 回调
    `final void` | `)>replaceDataChangeListener(OnDataChangeListener<T> onDataChangeListener)` | 替换数据改变回调

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SingleDataHandler

          SingleDataHandler()

  - ### Method Detail

    - #### stop

           void stop()

    - #### addDataChangeListener

           final void )>addDataChangeListener(OnDataChangeListener<T> onDataChangeListener)

      设置数据改变 回调

      Parameters:
        `onDataChangeListener` - OnDataChangeListener

    - #### replaceDataChangeListener

           final void )>replaceDataChangeListener(OnDataChangeListener<T> onDataChangeListener)

      替换数据改变回调

      Parameters:
        `onDataChangeListener` - OnDataChangeListener