public class LineRange
extends java.lang.Object
| Constructor and Description |
|---|
LineRange() |
LineRange(int start,
int end) |
| Modifier and Type | Method and Description |
|---|---|
LineRange |
add(int i) |
boolean |
contains(int i) |
boolean |
contains(LineRange r) |
boolean |
equals(java.lang.Object o) |
java.util.List<LineRange> |
except(java.util.List<LineRange> except) |
java.util.List<LineRange> |
except(java.util.List<LineRange> except,
boolean presorted) |
static LineRange |
fromFirstLast(int first,
int last) |
static LineRange |
fromStartLen(int start,
int len) |
int |
getEnd() |
int |
getFirst() |
int |
getLast() |
int |
getLength() |
int |
getStart() |
int |
hashCode() |
static LineRange |
intersection(LineRange r1,
LineRange r2) |
boolean |
intersects(LineRange r) |
void |
setEnd(int end) |
void |
setFirst(int first) |
void |
setLast(int last) |
void |
setLength(int len) |
void |
setStart(int start) |
LineRange |
sub(int i) |
java.lang.String |
toString() |
static LineRange |
union(LineRange r1,
LineRange r2) |
public boolean contains(int i)
public boolean contains(LineRange r)
public boolean intersects(LineRange r)
public LineRange add(int i)
public LineRange sub(int i)
public int getStart()
public void setStart(int start)
public int getEnd()
public void setEnd(int end)
public int getLength()
public void setLength(int len)
public int getLast()
public void setLast(int last)
public int getFirst()
public void setFirst(int first)
public static LineRange fromFirstLast(int first, int last)
public static LineRange fromStartLen(int start, int len)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object