Packages

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
Serializable, Product, Equals, IntervalLike, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Interval
  2. Serializable
  3. Product
  4. Equals
  5. IntervalLike
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Interval(start: Int, stop: Int)

    start

    start offset, zero based, inclusive

    stop

    end offset, exclusive (the interval length is end - begin).

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(n: Int): Interval

    Shifts the interval forward

  4. def -(n: Int): Interval

    Shifts the interval backward

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def includes(that: IntervalLike): Boolean
    Definition Classes
    IntervalLike
  12. def includes(offset: Int): Boolean
    Definition Classes
    IntervalLike
  13. def intersection(interval: Interval): Interval
  14. def intersectsWith(that: IntervalLike): Boolean
    Definition Classes
    IntervalLike
  15. def isEmpty: Boolean
    Definition Classes
    IntervalLike
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def length: Int

    The interval length is end - begin

    The interval length is end - begin

    Definition Classes
    IntervalLike
  18. def matches(that: IntervalLike): Boolean
    Definition Classes
    IntervalLike
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def nonEmpty: Boolean
    Definition Classes
    IntervalLike
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def overlaps(that: IntervalLike): Boolean
    Definition Classes
    IntervalLike
  24. def productElementNames: Iterator[String]
    Definition Classes
    Product
  25. val start: Int

    Start offset, zero based, inclusive

    Start offset, zero based, inclusive

    Definition Classes
    IntervalIntervalLike
  26. val stop: Int

    End offset, _exclusive_

    End offset, _exclusive_

    Definition Classes
    IntervalIntervalLike
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def touches(offset: Int): Boolean
    Definition Classes
    IntervalLike
  29. def touchesNonEmpty(offset: Int): Boolean
    Definition Classes
    IntervalLike
  30. def transformWith(f: (Int) => Int): Interval

    Applies function f to both begin and end

  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. def withBeginShift(n: Int): Interval

    Adds a delta n to the begin

  35. def withEndShift(n: Int): Interval

    Adds a delta n to the end

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from IntervalLike

Inherited from AnyRef

Inherited from Any

Ungrouped