Comparable<QueryInterval>
public class QueryInterval extends Object implements Comparable<QueryInterval>
Modifier and Type | Field | Description |
---|---|---|
int |
end |
1-based, inclusive.
|
int |
referenceIndex |
Index of reference sequence, based on the sequence dictionary of the BAM file being queried.
|
int |
start |
1-based, inclusive
|
Constructor | Description |
---|---|
QueryInterval(int referenceIndex,
int start,
int end) |
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(QueryInterval other) |
|
boolean |
endsAtStartOf(QueryInterval other) |
|
boolean |
equals(Object o) |
|
int |
hashCode() |
|
static QueryInterval[] |
optimizeIntervals(QueryInterval[] inputIntervals) |
|
boolean |
overlaps(QueryInterval other) |
|
String |
toString() |
public final int referenceIndex
public final int start
public final int end
public int compareTo(QueryInterval other)
compareTo
in interface Comparable<QueryInterval>
public boolean endsAtStartOf(QueryInterval other)
public boolean overlaps(QueryInterval other)
public static QueryInterval[] optimizeIntervals(QueryInterval[] inputIntervals)
inputIntervals
- WARNING: This list is modified (sorted) by this method.