Class LineRange

java.lang.Object
edu.hm.hafner.analysis.LineRange
All Implemented Interfaces:
Serializable

public class LineRange extends Object implements Serializable
A line range in a source file is defined by its first and last line.
Author:
Ullrich Hafner
See Also:
  • Constructor Details

    • 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 Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object