Interface MessagePositionHandler

  • All Implemented Interfaces:

    
    public interface MessagePositionHandler
    
                        

    A handler to determine the position of a message inside a group.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract List<MessagePosition> handleMessagePosition(Message previousMessage, Message message, Message nextMessage, Boolean isAfterDateSeparator, Boolean isInThread) Determines the position of a message inside a group.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • handleMessagePosition

         abstract List<MessagePosition> handleMessagePosition(Message previousMessage, Message message, Message nextMessage, Boolean isAfterDateSeparator, Boolean isInThread)

        Determines the position of a message inside a group.

        Parameters:
        previousMessage - The previous Message in the list.
        message - The current Message in the list.
        nextMessage - The next Message in the list.
        isAfterDateSeparator - If a date separator was added before the current Message.
        isInThread - If the current Message is in a thread.
        Returns:

        The position of the current message inside the group.