Class LineRange

    • Constructor Detail

      • LineRange

        public LineRange​(int line)
        Creates a new instance of LineRange.
        Parameters:
        line - the single line of this range
      • LineRange

        public LineRange​(int start,
                         int end)
        Creates a new instance of LineRange.
        Parameters:
        start - start of the range
        end - end of the range
    • Method Detail

      • getStart

        public int getStart()
        Returns the first line of this range.
        Returns:
        the first line of this range
      • getEnd

        public int getEnd()
        Returns the last line of this range.
        Returns:
        the last line of this range
      • equals

        public boolean equals​(@CheckForNull
                              Object obj)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object