Class/Object

nyaya.gen

Gen

Related Docs: object Gen | package gen

Permalink

final case class Gen[+A](run: Run[A]) extends AnyVal with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyVal, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Gen
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyVal
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Gen(run: Run[A])

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    Any
  3. def ***[B](g: Gen[B]): Gen[(A, B)]

    Permalink
  4. def +++[B](g: Gen[B]): Gen[\/[A, B]]

    Permalink
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  6. def \&/[B](g: Gen[B]): Gen[\&/[A, B]]

    Permalink
  7. def \/[B](g: Gen[B]): Gen[\/[A, B]]

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def either[B](g: Gen[B]): Gen[Either[A, B]]

    Permalink
  10. def fill[B](n: Int)(implicit cbf: CanBuildFrom[Nothing, A, B]): Gen[B]

    Permalink
  11. def fillFold[B](n: Int, z: B)(f: (B, A) ⇒ B): Gen[B]

    Permalink
  12. def fillFoldSS[B](ss: SizeSpec, z: B)(f: (B, A) ⇒ B): Gen[B]

    Permalink
    Annotations
    @inline()
  13. def fillFoldSS1[B](ss: SizeSpec, z: B)(f: (B, A) ⇒ B): Gen[B]

    Permalink
    Annotations
    @inline()
  14. def fillSS[B](ss: SizeSpec)(implicit cbf: CanBuildFrom[Nothing, A, B]): Gen[B]

    Permalink
    Annotations
    @inline()
  15. def fillSS1[B](ss: SizeSpec)(implicit cbf: CanBuildFrom[Nothing, A, B]): Gen[B]

    Permalink
    Annotations
    @inline()
  16. def flatMap[B](f: (A) ⇒ Gen[B]): Gen[B]

    Permalink
  17. def flatten[B](implicit ev: <:<[A, Gen[B]]): Gen[B]

    Permalink
  18. def getClass(): Class[_ <: AnyVal]

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

    Permalink
    Definition Classes
    Any
  20. def list(implicit ss: SizeSpec): Gen[List[A]]

    Permalink
  21. def list1(implicit ss: SizeSpec): Gen[List[A]]

    Permalink
  22. def map[B](f: (A) ⇒ B): Gen[B]

    Permalink
  23. def mapBy[K](gk: Gen[K])(implicit ss: SizeSpec): Gen[Map[K, A]]

    Permalink
  24. def mapByEachKey[K](keys: TraversableOnce[K]): Gen[Map[K, A]]

    Permalink
  25. def mapByKeySubset[K](legalKeys: TraversableOnce[K]): Gen[Map[K, A]]

    Permalink
  26. def mapTo[K >: A, V](gv: Gen[V])(implicit ss: SizeSpec): Gen[Map[K, V]]

    Permalink
    Annotations
    @inline()
  27. def nel[B >: A](implicit ss: SizeSpec): Gen[NonEmptyList[B]]

    Permalink
  28. def option: Gen[Option[A]]

    Permalink
  29. def pair: Gen[(A, A)]

    Permalink
  30. val run: Run[A]

    Permalink
  31. def samples(ctx: GenCtx): Iterator[A]

    Permalink

    Produce an infinite stream of generated data.

    Produce an infinite stream of generated data.

    Use .take(n) for a finite number of samples.

  32. def samples(): Iterator[A]

    Permalink

    Produce an infinite stream of generated data.

    Produce an infinite stream of generated data.

    Use .take(n) for a finite number of samples.

  33. def samplesSized(genSize: Int): Iterator[A]

    Permalink

    Produce an infinite stream of generated data.

    Produce an infinite stream of generated data.

    Use .take(n) for a finite number of samples.

  34. def set[B >: A](implicit ss: SizeSpec): Gen[Set[B]]

    Permalink
  35. def set1[B >: A](implicit ss: SizeSpec): Gen[Set[B]]

    Permalink
  36. def shuffle[C[X] <: TraversableOnce[X], B](implicit ev: <:<[A, C[B]], cbf: CanBuildFrom[C[B], B, C[B]]): Gen[C[B]]

    Permalink
  37. def stream(implicit ss: SizeSpec): Gen[Stream[A]]

    Permalink
  38. def stream1(implicit ss: SizeSpec): Gen[Stream[A]]

    Permalink
  39. def strengthL[B](b: B): Gen[(B, A)]

    Permalink
  40. def strengthR[B](b: B): Gen[(A, B)]

    Permalink
  41. def subset[C[X] <: TraversableOnce[X], B](implicit ev: <:<[A, C[B]], cbf: CanBuildFrom[Nothing, B, C[B]]): Gen[C[B]]

    Permalink
  42. def subset1[C[X] <: IndexedSeq[X], B](implicit ev: <:<[A, C[B]], cbf: CanBuildFrom[Nothing, B, C[B]]): Gen[C[B]]

    Permalink

    Generates a non-empty subset, unless the underlying seq is empty (in which case this returns an empty seq too).

  43. def take[C[X] <: TraversableOnce[X], B](n: SizeSpec)(implicit ev: <:<[A, C[B]], cbf: CanBuildFrom[Nothing, B, C[B]]): Gen[C[B]]

    Permalink
  44. def triple: Gen[(A, A, A)]

    Permalink
  45. def vector(implicit ss: SizeSpec): Gen[Vector[A]]

    Permalink
  46. def vector1(implicit ss: SizeSpec): Gen[Vector[A]]

    Permalink
  47. def withFilter(p: (A) ⇒ Boolean): Gen[A]

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any

Ungrouped