public class Interval extends Object
| Constructor and Description |
|---|
Interval(int start,
int end,
double coverage)
Constructor; start inclusive, end exclusive.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getCoverage() |
int |
getEnd() |
int |
getLength() |
int |
getStart() |
boolean |
overlaps(Interval other)
True if two intervals overlap.
|
void |
setCoverage(double coverage) |
void |
setEnd(int end) |
void |
setStart(int start) |
public Interval(int start,
int end,
double coverage)
start - the interval's start.end - the interval's end.coverage - the interval's coverage.public double getCoverage()
public void setCoverage(double coverage)
public void setStart(int start)
public int getStart()
public void setEnd(int end)
public int getEnd()
public int getLength()
public boolean overlaps(Interval other)
other - interval to compare with.Copyright © 2016. All rights reserved.