public abstract class AbstractInterval extends Object implements Interval
SEG_END_CMP, SEG_START_CMP
Constructor and Description |
---|
AbstractInterval() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Interval i)
Returns true if the current includes the given interval.
|
boolean |
endsEarilerThan(Interval i) |
boolean |
endsLaterThan(Interval i) |
boolean |
endsSameAs(Interval s) |
boolean |
equals(Object obj) |
boolean |
follows(Interval s) |
int |
getLength()
Get the length of the interval.
|
static Interval |
grow(Collection<? extends Interval> ivals) |
int |
hashCode() |
boolean |
immediatelyFollows(Interval s) |
boolean |
immediatelyPrecedes(Interval s) |
boolean |
leftAligned(Interval s) |
Interval |
overlap(Interval i) |
boolean |
overlaps(Interval i)
Test if the current and the given reference interval overlap.
|
boolean |
overlapsLeft(Interval i) |
boolean |
overlapsRight(Interval i)
this: [ s ][e] i: ss-----ee
|
boolean |
precedes(Interval s) |
boolean |
rightAligned(Interval s) |
boolean |
sameExtent(Interval s) |
boolean |
startsEarilerThan(Interval s) |
boolean |
startsLaterThan(Interval i) |
boolean |
startsSameAs(Interval i) |
String |
toString() |
public static Interval grow(Collection<? extends Interval> ivals)
public int getLength()
Interval
public boolean overlaps(Interval i)
Interval
public boolean overlapsLeft(Interval i)
overlapsLeft
in interface Interval
public boolean overlapsRight(Interval i)
Interval
overlapsRight
in interface Interval
i
- a interval.public boolean rightAligned(Interval s)
rightAligned
in interface Interval
public boolean leftAligned(Interval s)
leftAligned
in interface Interval
public boolean sameExtent(Interval s)
sameExtent
in interface Interval
public boolean contains(Interval i)
public boolean immediatelyPrecedes(Interval s)
immediatelyPrecedes
in interface Interval
public boolean immediatelyFollows(Interval s)
immediatelyFollows
in interface Interval
public boolean startsEarilerThan(Interval s)
startsEarilerThan
in interface Interval
public boolean startsLaterThan(Interval i)
startsLaterThan
in interface Interval
public boolean startsSameAs(Interval i)
startsSameAs
in interface Interval
public boolean endsEarilerThan(Interval i)
endsEarilerThan
in interface Interval
public boolean endsLaterThan(Interval i)
endsLaterThan
in interface Interval
public boolean endsSameAs(Interval s)
endsSameAs
in interface Interval
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.