Class Field


  • public class Field
    extends Object
    https://api.slack.com/docs/message-attachments
    • Constructor Detail

      • Field

        public Field()
      • Field

        public Field​(String title,
                     String value,
                     boolean valueShortEnough)
    • Method Detail

      • getTitle

        public String getTitle()
        Shown as a bold heading above the value text. It cannot contain markup and will be escaped for you.
      • getValue

        public String getValue()
        The text value of the field. It may contain standard message markup (see details below) and must be escaped as normal. May be multi-line. https://api.slack.com/docs/message-attachments#message_formatting
      • isValueShortEnough

        public boolean isValueShortEnough()
        An optional flag indicating whether the value is short enough to be displayed side-by-side with other values.
      • setTitle

        public void setTitle​(String title)
        Shown as a bold heading above the value text. It cannot contain markup and will be escaped for you.
      • setValue

        public void setValue​(String value)
        The text value of the field. It may contain standard message markup (see details below) and must be escaped as normal. May be multi-line. https://api.slack.com/docs/message-attachments#message_formatting
      • setValueShortEnough

        public void setValueShortEnough​(boolean valueShortEnough)
        An optional flag indicating whether the value is short enough to be displayed side-by-side with other values.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object