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 |
|---|---|
int |
begin |
int |
end |
static Range |
MAX |
static Range |
MIN |
| 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) |
static Range |
getOutputRange(Range r,
boolean[] ro) |
Range |
invert(boolean inv) |
boolean |
isEmpty() |
int |
length() |
static Range |
mergeRange(Range ra,
Range rb) |
static boolean |
overlaps(Range ra,
Range rb)
Deprecated.
|
String |
toString() |
public static final Range MIN
public static final Range MAX
public final int begin
public final int 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.