Class ITextExtensions


  • public class ITextExtensions
    extends Object
    Meta-programming extensions to the IText class.
    Author:
    zhanhb, Emanuel Rabina
    • Constructor Detail

      • ITextExtensions

        public ITextExtensions()
    • Method Detail

      • equals

        public static boolean equals​(IText self,
                                     Object other)
        Compares this text with another.
        Parameters:
        self -
        other -
        Returns:
        true if the text content matches.
      • isWhitespace

        public static boolean isWhitespace​(IText self)
        Returns whether or not this text event is collapsible whitespace.
        Parameters:
        self -
        Returns:
        true if, when trimmed, the text content is empty.