Class LineRange

    • Constructor Detail

      • LineRange

        public LineRange​(int startLine,
                         int numberOfLines)
        Creates a new line range with the given specification.
        Parameters:
        startLine - the start line
        numberOfLines - the number of lines
    • Method Detail

      • getStartLine

        public int getStartLine()
        Description copied from interface: ILineRange
        Returns the start line of this line range or -1.
        Specified by:
        getStartLine in interface ILineRange
        Returns:
        the start line of this line range or -1 if this line range is invalid.
      • getNumberOfLines

        public int getNumberOfLines()
        Description copied from interface: ILineRange
        Returns the number of lines of this line range or -1.
        Specified by:
        getNumberOfLines in interface ILineRange
        Returns:
        the number of lines in this line range or -1 if this line range is invalid.