Class/Object

dogs

Range

Related Docs: object Range | package dogs

Permalink

final case class Range[A](start: A, end: A) extends Product with Serializable

Represent an inclusive range [x, y] that can be generated by using discrete operations

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Range
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Range(start: A, end: A)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def &(other: Range[A])(implicit order: Order[A]): Option[Range[A]]

    Permalink
  4. def +(other: Range[A])(implicit order: Order[A], enum: Enum[A]): (Range[A], Option[Range[A]])

    Permalink
  5. def -(range: Range[A])(implicit enum: Enum[A], order: Order[A]): Option[(Range[A], Option[Range[A]])]

    Permalink

    Subtract a Range from this range.

    Subtract a Range from this range. The result will be 0, 1 or 2 ranges

  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def contains(x: A)(implicit A: Order[A]): Boolean

    Permalink

    Verify is x is in range [start, end]

  10. def contains(range: Range[A])(implicit order: Order[A]): Boolean

    Permalink

    Verify that the passed range is a sub-range

  11. val end: A

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def foldLeft[B](s: B, f: (B, A) ⇒ B)(implicit discrete: Enum[A], order: Order[A]): B

    Permalink
  15. def foreach(f: (A) ⇒ Unit)(implicit enum: Enum[A], order: Order[A]): Unit

    Permalink

    Apply function f to each element in range [star, end]

  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def map[B](f: (A) ⇒ B): Range[B]

    Permalink
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def reverse: Range[A]

    Permalink

    Returns range [end, start]

  23. val start: A

    Permalink
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toList(implicit enum: Enum[A], order: Order[A]): List[A]

    Permalink

    Return all the values in the Range as a List

  26. def toStreaming(implicit enum: Enum[A], order: Order[A]): Streaming[A]

    Permalink

    return a stream of the elements in the range

  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped