Interface MessagePositionHandler
-
- All Implemented Interfaces:
public interface MessagePositionHandlerA handler to determine the position of a message inside a group.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMessagePositionHandler.Companion
-
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. -
-
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.
-
-
-
-