|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.unima.alcomox.ontology.Interval
public class Interval
An interval represents a sub branch of classes in an interval tree.
Constructor Summary | |
---|---|
Interval(int lower)
Constructs an interval be explicitly defining the lower border, while the upper border is set to -1 to mark the interval as an open interval. |
|
Interval(int lower,
int upper)
|
Method Summary | |
---|---|
int |
compareTo(Interval that)
|
boolean |
contains(int index)
Checks whether an index is contained in this interval. |
boolean |
contains(Interval that)
Compares this and that interval and checks whether this interval contains that interval. |
boolean |
equals(java.lang.Object that)
|
int |
getId()
|
int |
getLower()
|
int |
getUpper()
|
boolean |
isClosed()
|
boolean |
overlaps(Interval that)
Compares this and that interval and checks whether this overlaps with that (see also the cases in the in line comments). |
void |
setLower(int lower)
|
void |
setUpper(int upper)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Interval(int lower)
lower
- The lower border (inclusive) of the interval.public Interval(int lower, int upper)
Method Detail |
---|
public void setLower(int lower)
public void setUpper(int upper)
public int getLower()
public int getUpper()
public boolean isClosed()
public int getId()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public boolean overlaps(Interval that)
that
- Another interval.
public boolean contains(Interval that)
that
- Another interval.
public boolean contains(int index)
index
- Some index used in an interval tree.
public int compareTo(Interval that)
compareTo
in interface java.lang.Comparable<Interval>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |