com.swath
Class Tools.TextRange

java.lang.Object
  extended bycom.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

Constructor Summary
Tools.TextRange(int startIndex, int endIndex)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 int getEndIndex()
          Gets the end index of the text.
 int getStartIndex()
          Gets the start index of the text.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tools.TextRange

public Tools.TextRange(int startIndex,
                       int endIndex)
Method Detail

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object obj)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
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