case class Interval(start: Int, stop: Int) extends IntervalLike with Product with Serializable
An integer range (in a text).
- start
start offset, zero based, inclusive
- stop
end offset, exclusive (the interval length is
end - begin).
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Interval
- Serializable
- Product
- Equals
- IntervalLike
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Interval(start: Int, stop: Int)
- start
start offset, zero based, inclusive
- stop
end offset, exclusive (the interval length is
end - begin).
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(n: Int): Interval
Shifts the interval forward
- def -(n: Int): Interval
Shifts the interval backward
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def includes(that: IntervalLike): Boolean
- Definition Classes
- IntervalLike
- def includes(offset: Int): Boolean
- Definition Classes
- IntervalLike
- def intersection(interval: Interval): Interval
- def intersectsWith(that: IntervalLike): Boolean
- Definition Classes
- IntervalLike
- def isEmpty: Boolean
- Definition Classes
- IntervalLike
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def length: Int
The interval length is
end - beginThe interval length is
end - begin- Definition Classes
- IntervalLike
- def matches(that: IntervalLike): Boolean
- Definition Classes
- IntervalLike
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonEmpty: Boolean
- Definition Classes
- IntervalLike
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def overlaps(that: IntervalLike): Boolean
- Definition Classes
- IntervalLike
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val start: Int
Start offset, zero based, inclusive
Start offset, zero based, inclusive
- Definition Classes
- Interval → IntervalLike
- val stop: Int
End offset, _exclusive_
End offset, _exclusive_
- Definition Classes
- Interval → IntervalLike
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def touches(offset: Int): Boolean
- Definition Classes
- IntervalLike
- def touchesNonEmpty(offset: Int): Boolean
- Definition Classes
- IntervalLike
- def transformWith(f: (Int) => Int): Interval
Applies function
fto bothbeginandend - final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withBeginShift(n: Int): Interval
Adds a delta
nto thebegin - def withEndShift(n: Int): Interval
Adds a delta
nto theend