Class BaseDataProcessor

  • All Implemented Interfaces:
    ai.nexconn.chatui.config.DataProcessor

    
    public abstract class BaseDataProcessor<T>
     implements DataProcessor<T>
                        

    Abstract base implementation of DataProcessor.

    Supports all major channel types by default. Override individual methods to customize filtering or gathered-display behavior.

    • 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
      Array<ChannelType> supportedTypes() Returns the channel types supported by this data processor.
      List<T> filtered(List<T> data) Filters the raw channel data before it is displayed in the channel list.
      boolean isGathered(ChannelType type) Returns whether a channel type is displayed in aggregated (gathered) mode.
      • Methods inherited from class ai.nexconn.chatui.config.DataProcessor

        isGathered
      • Methods inherited from class java.lang.Object

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

      • BaseDataProcessor

        BaseDataProcessor()
    • Method Detail

      • supportedTypes

         Array<ChannelType> supportedTypes()

        Returns the channel types supported by this data processor.

        Returns:

        array of supported ai.nexconn.chat.channel.ChannelType values

      • filtered

         List<T> filtered(List<T> data)

        Filters the raw channel data before it is displayed in the channel list.

        Called both when bulk-fetching channels from the database and when a new channel is created from an incoming real-time message.

        Parameters:
        data - raw channel list to filter
        Returns:

        filtered channel list

      • isGathered

         boolean isGathered(ChannelType type)

        Returns whether a channel type is displayed in aggregated (gathered) mode.

        Parameters:
        type - channel type to check
        Returns:

        true if the type is gathered; false otherwise