public interface Interval
Modifier and Type | Field and Description |
---|---|
static Comparator<Interval> |
SEG_END_CMP |
static Comparator<Interval> |
SEG_START_CMP |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Interval interval) |
boolean |
endsEarilerThan(Interval interval) |
boolean |
endsLaterThan(Interval interval) |
boolean |
endsSameAs(Interval interval) |
boolean |
follows(Interval interval) |
int |
getEnd()
Get the end of the interval.
|
int |
getLength()
Get the length of the interval.
|
int |
getStart()
Get the start of the interval.
|
boolean |
immediatelyFollows(Interval interval) |
boolean |
immediatelyPrecedes(Interval interval) |
boolean |
leftAligned(Interval interval) |
Interval |
overlap(Interval interval) |
boolean |
overlaps(Interval interval)
Test if the current and the given reference interval overlap.
|
boolean |
overlapsLeft(Interval interval) |
boolean |
overlapsRight(Interval interval)
this: [ s ][e] i: ss-----ee
|
boolean |
precedes(Interval interval) |
boolean |
rightAligned(Interval interval) |
boolean |
sameExtent(Interval interval) |
boolean |
startsEarilerThan(Interval interval) |
boolean |
startsLaterThan(Interval interval) |
boolean |
startsSameAs(Interval interval) |
static final Comparator<Interval> SEG_START_CMP
static final Comparator<Interval> SEG_END_CMP
int getLength()
int getStart()
int getEnd()
boolean overlaps(Interval interval)
interval
- the reference interval.true
if there is an overlap.boolean overlapsLeft(Interval interval)
boolean overlapsRight(Interval interval)
interval
- a interval.boolean rightAligned(Interval interval)
boolean leftAligned(Interval interval)
boolean sameExtent(Interval interval)
boolean contains(Interval interval)
boolean precedes(Interval interval)
boolean immediatelyPrecedes(Interval interval)
boolean follows(Interval interval)
boolean immediatelyFollows(Interval interval)
boolean startsEarilerThan(Interval interval)
boolean startsLaterThan(Interval interval)
boolean startsSameAs(Interval interval)
boolean endsEarilerThan(Interval interval)
boolean endsLaterThan(Interval interval)
boolean endsSameAs(Interval interval)
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.