public class Range extends Object
Range specifies a text range (begin char pos, end char pos) within a given document.| Modifier and Type | Class and Description |
|---|---|
static class |
Range.Mapping |
static class |
Range.Operator |
static class |
Range.Output |
static class |
Range.Relation |
| Modifier and Type | Field and Description |
|---|---|
Integer |
begin |
static Comparator<Range> |
BEGIN_COMP |
Integer |
end |
static Comparator<Range> |
END_COMP |
| Modifier and Type | Method and Description |
|---|---|
static int |
compare(Range ra,
Range rb) |
static int |
compare(Range ra,
Range rb,
boolean inv) |
boolean |
contains(Range r) |
boolean |
equals(Range r) |
int |
getBegin(boolean invert) |
int |
getEnd(boolean invert) |
Range |
invert(boolean inv) |
boolean |
isEmpty() |
int |
length() |
static boolean |
overlaps(Range ra,
Range rb)
Deprecated.
|
String |
toString() |
public static Comparator<Range> BEGIN_COMP
public static Comparator<Range> END_COMP
public final Integer begin
public final Integer end
@Deprecated public static boolean overlaps(Range ra, Range rb)
public int getBegin(boolean invert)
public int getEnd(boolean invert)
public Range invert(boolean inv)
public boolean isEmpty()
public int length()
public boolean contains(Range r)
public boolean equals(Range r)
Copyright © 2018. All rights reserved.