Class AbstractFormattedStringElement

  • Direct Known Subclasses:
    FormattedStringElement, FormatTokenElement

    public abstract class AbstractFormattedStringElement
    extends Object
    Abstract base class for formatted string elements. These elements make up the formatted string.
    Author:
    Rene Schneider - initial API and implementation
    • Constructor Detail

      • AbstractFormattedStringElement

        public AbstractFormattedStringElement()
    • Method Detail

      • toUnformattedString

        public abstract String toUnformattedString()
        Returns the elements' contents as a String without any formatting tokens.
        Returns:
        the unformatted element contents
      • toFormattedString

        public abstract String toFormattedString()
        Returns the elements' contents as a String with all necessary formatting tokens.
        Returns:
        the formatted element contents
      • equals

        public boolean equals​(Object anOtherObject)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object