org.scalacheck

Gen

sealed trait Gen[+T] extends AnyRef

Class that represents a generator.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Gen
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. final class GenWithFilter[+A] extends AnyRef

Abstract Value Members

  1. abstract def apply(prms: Params): Option[T]

Concrete Value Members

  1. def !=[U](g: Gen[U]): Prop

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

    Definition Classes
    AnyRef → Any
  3. def !==[U](g: Gen[U]): Prop

  4. final def ##(): Int

    Definition Classes
    AnyRef → Any
  5. def :|(l: Symbol): Gen[T]

    Put a label on the generator to make test reports clearer

  6. def :|(l: String): Gen[T]

    Put a label on the generator to make test reports clearer

  7. def ==[U](g: Gen[U]): Prop

    Returns a new property that holds if and only if both this and the given generator generates the same result, or both generators generate no result.

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

    Definition Classes
    AnyRef → Any
  9. def ap[U](g: Gen[(T) ⇒ U]): Gen[U]

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def combine[U, V](g: Gen[U])(f: (Option[T], Option[U]) ⇒ Option[V]): Gen[V]

  13. def combine3[U, V, W](gu: Gen[U], gv: Gen[V])(f: (Option[T], Option[U], Option[V]) ⇒ Option[W]): Gen[W]

  14. def combine4[U, V, W, X](gu: Gen[U], gv: Gen[V], gw: Gen[W])(f: (Option[T], Option[U], Option[V], Option[W]) ⇒ Option[X]): Gen[X]

  15. def combine5[U, V, W, X, Y](gu: Gen[U], gv: Gen[V], gw: Gen[W], gx: Gen[X])(f: (Option[T], Option[U], Option[V], Option[W], Option[X]) ⇒ Option[Y]): Gen[Y]

  16. def combine6[U, V, W, X, Y, Z](gu: Gen[U], gv: Gen[V], gw: Gen[W], gx: Gen[X], gy: Gen[Y])(f: (Option[T], Option[U], Option[V], Option[W], Option[X], Option[Y]) ⇒ Option[Z]): Gen[Z]

  17. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  19. def filter(p: (T) ⇒ Boolean): Gen[T]

  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def flatMap[U](f: (T) ⇒ Gen[U]): Gen[U]

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

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

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

    Definition Classes
    Any
  25. def label(l: String): Gen[T]

    Put a label on the generator to make test reports clearer

  26. var label: String

  27. def map[U](f: (T) ⇒ U): Gen[U]

  28. def map2[U, V](g: Gen[U])(f: (T, U) ⇒ V): Gen[V]

  29. def map3[U, V, W](gu: Gen[U], gv: Gen[V])(f: (T, U, V) ⇒ W): Gen[W]

  30. def map4[U, V, W, X](gu: Gen[U], gv: Gen[V], gw: Gen[W])(f: (T, U, V, W) ⇒ X): Gen[X]

  31. def map5[U, V, W, X, Y](gu: Gen[U], gv: Gen[V], gw: Gen[W], gx: Gen[X])(f: (T, U, V, W, X) ⇒ Y): Gen[Y]

  32. def map6[U, V, W, X, Y, Z](gu: Gen[U], gv: Gen[V], gw: Gen[W], gx: Gen[X], gy: Gen[Y])(f: (T, U, V, W, X, Y) ⇒ Z): Gen[Z]

  33. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  36. def sample: Option[T]

    Generates a sample value by using default parameters

  37. def suchThat(p: (T) ⇒ Boolean): Gen[T]

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

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    Gen → AnyRef → Any
  40. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def withFilter(p: (T) ⇒ Boolean): GenWithFilter[T]

  44. def |[U >: T](g: Gen[U]): Gen[U]

  45. def |:(l: Symbol): Gen[T]

    Put a label on the generator to make test reports clearer

  46. def |:(l: String): Gen[T]

    Put a label on the generator to make test reports clearer

Inherited from AnyRef

Inherited from Any

Ungrouped