org.eclipse.jpt.core.utility
Class AbstractTextRange
java.lang.Object
org.eclipse.jpt.core.utility.AbstractTextRange
- All Implemented Interfaces:
- TextRange
public abstract class AbstractTextRange
- extends java.lang.Object
- implements TextRange
Partial implementation of text range.
Provisional API: This class is part of an interim API that is still
under development and expected to change significantly before reaching
stability. It is available at this early stage to solicit feedback from
pioneering adopters on the understanding that any code that uses this API
will almost certainly be broken (repeatedly) as the API evolves.
Method Summary |
boolean |
equals(java.lang.Object o)
Return true if the offsets and lengths are the same. |
int |
hashCode()
Return a hash code that corresponds to the #equals() contract. |
boolean |
includes(int index)
Return whether the range includes the character at the specified index. |
java.lang.String |
toString()
|
boolean |
touches(int index)
Return whether the range touches an insertion cursor at the
specified index. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
AbstractTextRange
public AbstractTextRange()
includes
public boolean includes(int index)
- Description copied from interface:
TextRange
- Return whether the range includes the character at the specified index.
- Specified by:
includes
in interface TextRange
touches
public boolean touches(int index)
- Description copied from interface:
TextRange
- Return whether the range touches an insertion cursor at the
specified index.
- Specified by:
touches
in interface TextRange
equals
public boolean equals(java.lang.Object o)
- Description copied from interface:
TextRange
- Return true if the offsets and lengths are the same.
- Specified by:
equals
in interface TextRange
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Description copied from interface:
TextRange
- Return a hash code that corresponds to the #equals() contract.
- Specified by:
hashCode
in interface TextRange
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object