Interface DateSeparatorHandler

  • All Implemented Interfaces:

    
    public interface DateSeparatorHandler
    
                        

    A SAM designed to evaluate if a date separator should be added between messages.

    • 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 Boolean shouldAddDateSeparator(Message previousMessage, Message message) Determines whether we should add the date separator or not.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • shouldAddDateSeparator

         abstract Boolean shouldAddDateSeparator(Message previousMessage, Message message)

        Determines whether we should add the date separator or not.

        Parameters:
        previousMessage - The Message before the one we are currently evaluating.
        message - The Message before which we want to add a date separator or not.
        Returns:

        Whether to add the date separator or not.