Package org.sonar.api.batch.fs.internal
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 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.TextPointerend()booleanequals(java.lang.Object obj)inthashCode()booleanoverlap(org.sonar.api.batch.fs.TextRange another)org.sonar.api.batch.fs.TextPointerstart()java.lang.StringtoString()
-
-
-
Method Detail
-
start
public org.sonar.api.batch.fs.TextPointer start()
- Specified by:
startin interfaceorg.sonar.api.batch.fs.TextRange
-
end
public org.sonar.api.batch.fs.TextPointer end()
- Specified by:
endin interfaceorg.sonar.api.batch.fs.TextRange
-
overlap
public boolean overlap(org.sonar.api.batch.fs.TextRange another)
- Specified by:
overlapin interfaceorg.sonar.api.batch.fs.TextRange
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-