public class TextSelection
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static TextSelection |
EMPTY
An empty selection
|
int |
length
The length
|
int |
offset
The offset
|
| Constructor and Description |
|---|
TextSelection(int offset,
int length)
Create a new selection
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int checkOffset)
Added method to check if provided offset is contained
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public final int offset
public final int length
public static final TextSelection EMPTY
public TextSelection(int offset,
int length)
offset - the offsetlength - the lengthpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean contains(int checkOffset)
checkOffset - the offset to check againsttrue if offset is contained