public class Interval extends Object
An interval that has empty content is simply called empty. Note that empty intervals still have a location point; there is a distinct empty interval for every integer location.
Modifier and Type | Class and Description |
---|---|
static class |
Interval.Relation
Qualitative location relationships between two intervals.
|
static class |
Interval.Tree<A> |
static class |
Interval.Union |
Constructor and Description |
---|
Interval(int start,
int end) |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkRelation(Interval i,
Interval j) |
static boolean |
connected(Interval i,
Interval j) |
boolean |
contains(int value) |
protected boolean |
equals(Interval o) |
boolean |
equals(Object o) |
int |
getEnd() |
int |
getLength() |
int |
getStart() |
int |
hashCode() |
static void |
main(String[] args) |
static Interval.Relation |
relation(Interval i,
Interval j) |
static Interval |
span(Interval i,
Interval j) |
IntStream |
stream() |
String |
toString() |
public int getStart()
public int getEnd()
public int getLength()
public boolean contains(int value)
public IntStream stream()
public static Interval.Relation relation(Interval i, Interval j)
protected boolean equals(Interval o)
public static void main(String[] args)
see also the complete user documentation .