Schnittstelle MessagePart.Text

Alle Superschnittstellen:
MessagePart, SpacesAware
Alle bekannten Implementierungsklassen:
NoSpaceTextPart, TextPart
Umschließende Schnittstelle:
MessagePart

public static interface MessagePart.Text extends MessagePart
Message part containing text only, optionally decorated with leading/trailing space.
  • Felddetails

    • EMPTY

      static final MessagePart.Text EMPTY
      Message part representing an empty text value.
    • NULL

      static final MessagePart.Text NULL
      Message part representing a null value.
  • Methodendetails

    • getText

      @Contract(pure=true) String getText()
      Returns the trimmed text for this message part.
      Gibt zurück:
      trimmed text or null
    • getTextWithSpaces

      @Contract(pure=true) @NotNull @NotNull String getTextWithSpaces()
      Returns the text for this message part decorated with spaces, if available. If the message text is null an empty string is returned.
      Gibt zurück:
      text, never null
    • isEmpty

      @Contract(pure=true) boolean isEmpty()
      Tells if this text message part is empty.
      Gibt zurück:
      true if this message part is empty, false otherwise