Class MultiDataHandler

  • All Implemented Interfaces:

    
    public abstract class MultiDataHandler
    
                        

    Business logic handler with multi-type data change callbacks.

    Since:

    5.10.4

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void stop()
      final <T> void )>addDataChangeListener(MultiDataHandler.DataKey<)>T> dataKey, OnDataChangeListener<T> onDataChangeListener) Adds a data change listener.
      final <T> void )>replaceDataChangeListener(MultiDataHandler.DataKey<)>T> dataKey, OnDataChangeListener<T> onDataChangeListener) Replaces the data change listener.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MultiDataHandler

        MultiDataHandler()
    • Method Detail

      • addDataChangeListener

         final <T> void )>addDataChangeListener(MultiDataHandler.DataKey<)>T> dataKey, OnDataChangeListener<T> onDataChangeListener)

        Adds a data change listener.

        Parameters:
        dataKey - the key containing the identifier and corresponding Class type
        onDataChangeListener - the data change listener
      • replaceDataChangeListener

         final <T> void )>replaceDataChangeListener(MultiDataHandler.DataKey<)>T> dataKey, OnDataChangeListener<T> onDataChangeListener)

        Replaces the data change listener.

        Parameters:
        dataKey - the key containing the identifier and corresponding Class type
        onDataChangeListener - the data change listener