Class DefaultTextRange

  • All Implemented Interfaces:
    org.sonar.api.batch.fs.TextRange

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

      Constructors 
      Constructor Description
      DefaultTextRange​(org.sonar.api.batch.fs.TextPointer start, org.sonar.api.batch.fs.TextPointer end)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.sonar.api.batch.fs.TextPointer end()  
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      boolean overlap​(org.sonar.api.batch.fs.TextRange another)  
      org.sonar.api.batch.fs.TextPointer start()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DefaultTextRange

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

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object