com.swath
Class Tools.TextRange
java.lang.Object
com.swath.Tools.TextRange
- All Implemented Interfaces:
- java.lang.Cloneable
- Enclosing class:
- Tools
public static final class Tools.TextRange
- extends java.lang.Object
- implements java.lang.Cloneable
This class contains the start and end index for a text range.
- Since:
- SWATH 1.7
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Tools.TextRange
public Tools.TextRange(int startIndex,
int endIndex)
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
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
getStartIndex
public int getStartIndex()
- Gets the start index of the text.
This is the index of the first text character.
- Returns:
- The start index.
- Since:
- SWATH 1.7
getEndIndex
public int getEndIndex()
- Gets the end index of the text.
This is the index after the last text character.
- Returns:
- The end index.
- Since:
- SWATH 1.7