-
public interface IntervalA semi-closed interval.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classInterval.Companion
-
Method Summary
Modifier and Type Method Description abstract Booleanintersects(Interval other)Returns trueif a given interval intersects this interval andfalseotherwise.Intervalunion(Interval other)Returns a union of the two intervals, i.e. abstract Unitwrite(OrderedDataOutput output)abstract OffsetgetLeft()Start offset (inclusive). abstract OffsetgetRight()End offset (exclusive). -
-
Method Detail
-
intersects
abstract Boolean intersects(Interval other)
Returns
trueif a given interval intersects this interval andfalseotherwise.
-
union
Interval union(Interval other)
Returns a union of the two intervals, i.e. an interval which completely covers both of them.
-
write
abstract Unit write(OrderedDataOutput output)
-
-
-
-