Interface PrivateInterfaceMethodExamples.MessageFormatter

All Known Implementing Classes:
PrivateInterfaceMethodExamples.DefaultMessageFormatter
Enclosing class:
PrivateInterfaceMethodExamples

public static interface PrivateInterfaceMethodExamples.MessageFormatter
Interface with default methods that share private helper logic.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    standard(String message)
    Formats a normal message.
    default String
    urgent(String message)
    Formats an urgent message.
  • Method Details

    • standard

      default String standard(String message)
      Formats a normal message.
      Parameters:
      message - the raw message
      Returns:
      a normalized message with a standard prefix
    • urgent

      default String urgent(String message)
      Formats an urgent message.
      Parameters:
      message - the raw message
      Returns:
      an uppercase normalized message with a standard prefix