Class

com.salesforce.op.testkit.RandomStream

CollectionGenerator

Related Doc: package RandomStream

Permalink

case class CollectionGenerator[T](elements: Seq[T]) extends (Random) ⇒ T with Serializable with Product

Generator of values from a given collection, by default uniformly distributed - or with the distribution provided

T

type of the values

elements

all possible elements this generator can produce

Linear Supertypes
Product, Equals, Serializable, Serializable, (Random) ⇒ T, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CollectionGenerator
  2. Product
  3. Equals
  4. Serializable
  5. Serializable
  6. Function1
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CollectionGenerator(elements: Seq[T])

    Permalink

    elements

    all possible elements this generator can produce

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (T) ⇒ A): (Random) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(rng: Random): T

    Permalink

    produces one value from the given collection

    produces one value from the given collection

    rng

    random number generator used

    returns

    a random value, distributed uniformly by default, or with the given distribution law

    Definition Classes
    CollectionGenerator → Function1
  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 compose[A](g: (A) ⇒ Random): (A) ⇒ T

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  9. def distributedAs(dist: Seq[Double]): CollectionGenerator[T]

    Permalink

    Provides the distribution law with which to return values of the collection

    Provides the distribution law with which to return values of the collection

    dist

    cumulative distribution function. The sequence should be of the same length as the collection. The value at position k is the probability to hit an element in the collection between 0 and k.

    returns

    a new collection generator, that generates values at this given distribution

  10. val elements: Seq[T]

    Permalink

    all possible elements this generator can produce

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

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

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

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

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

Inherited from Product

Inherited from Equals

Inherited from Serializable

Inherited from Serializable

Inherited from (Random) ⇒ T

Inherited from AnyRef

Inherited from Any

Ungrouped