Interface MessageEditor<T>


public interface MessageEditor<T>
Provides an interface for abstracting edits that are made to a message.
  • Method Summary

    Modifier and Type
    Method
    Description
    edit(T input)
    Performs the edit on an input message.
    boolean
    supports(T input)
    Checks if this can edit a given message.
  • Method Details

    • edit

      T edit(T input)
      Performs the edit on an input message.
    • supports

      boolean supports(T input)
      Checks if this can edit a given message. This check should be highly optimized for performance. If a validation check cannot be completed extremely fast, this method should return true and decide in the scrub() implementation whether to perform the edit or not.