Class/Object

dogs

Range

Related Docs: object Range | package dogs

Permalink

sealed class Range[A] extends AnyRef

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

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Range
  2. AnyRef
  3. 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 -(range: Range[A])(implicit discrete: Enum[A], order: Order[A]): (Range[A], Range[A])

    Permalink

    Calculate the difference with range.

    Calculate the difference with range.

    It returns a tuple with the difference to the right and to the left of range.

    It basically calculates what is to the left of range that is in this and what is to the right of range that is in this (in both cases it does not include elements in range)

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

    Permalink
    Definition Classes
    AnyRef → Any
  5. def apply(start: A, end: A): Range[A]

    Permalink
  6. final def asInstanceOf[T0]: T0

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

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

    Permalink

    Verify is x is in range [start, end]

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

    Permalink

    Verify that the passed range is within

  10. val end: A

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

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  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 discrete: Enum[A], order: Order[A]): Unit

    Permalink

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

  16. def generate(implicit discrete: Enum[A], order: Order[A]): List[A]

    Permalink

    Generates the elements of the range [start, end] base of the discrete operations

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  20. def map[B](f: (A) ⇒ B)(implicit discrete: Enum[A], order: Order[A]): List[B]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  24. def reverse(implicit discrete: Enum[A], order: Order[A]): Range[A]

    Permalink

    Returns range [end, start]

  25. val start: A

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

    Permalink
    Definition Classes
    AnyRef
  27. def toList(implicit eA: Enum[A], oA: Order[A]): List[A]

    Permalink

    Return all the values in the Range as a List

  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped