Class Line


  • public class Line
    extends Object
    Defines an expected or excluded line (can be a regex or not).
    Since:
    11.4RC1
    Version:
    $Id: 306f3570f2eedb9460470a543364a34c1ecdecab $
    • Constructor Detail

      • Line

        public Line​(String content)
        Parameters:
        content - the log line that represents either an expectation or an exclude
      • Line

        public Line​(String content,
                    boolean isRegex)
        Parameters:
        content - the log line that represents either an expectation or an exclude
        isRegex - if true then the content is specified as a regex
    • Method Detail

      • getContent

        public String getContent()
        Returns:
        the log line that represents either an expectation or an exclude
      • isRegex

        public boolean isRegex()
        Returns:
        true if the content is specified as a regex
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object