Interface HasComment<T extends HasComment<T>>

  • Type Parameters:
    T - The extending type

    public interface HasComment<T extends HasComment<T>>
    A trait for models that can have a comment.
    Since:
    2.0
    Author:
    Emil Forslund
    • Method Detail

      • getComment

        Optional<String> getComment()
        If a comment is attached to this model, return it. Else empty.
        Returns:
        the comment or empty
      • setComment

        T setComment​(String comment)
        Sets the comment of this model. The comment may have multiple rows.
        Parameters:
        comment - the comment
        Returns:
        a reference to this