Class DefaultTextRange

java.lang.Object
org.sonar.api.batch.fs.internal.DefaultTextRange
All Implemented Interfaces:
org.sonar.api.batch.fs.TextRange

public class DefaultTextRange extends Object implements org.sonar.api.batch.fs.TextRange
Since:
5.2
  • Constructor Details

    • DefaultTextRange

      public DefaultTextRange(org.sonar.api.batch.fs.TextPointer start, org.sonar.api.batch.fs.TextPointer end)
  • Method Details

    • start

      public org.sonar.api.batch.fs.TextPointer start()
      Specified by:
      start in interface org.sonar.api.batch.fs.TextRange
    • end

      public org.sonar.api.batch.fs.TextPointer end()
      Specified by:
      end in interface org.sonar.api.batch.fs.TextRange
    • overlap

      public boolean overlap(org.sonar.api.batch.fs.TextRange another)
      Specified by:
      overlap in interface org.sonar.api.batch.fs.TextRange
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object