Class/Object

com.salesforce.op.testkit

RandomStream

Related Docs: object RandomStream | package testkit

Permalink

case class RandomStream[+T](producer: (Random) ⇒ T) extends (Random) ⇒ InfiniteStream[T] with Serializable with Product

Random stream of data of given type T

T

the type of result

producer

a function that, given an RND, produces one value of type T

Self Type
RandomStream[T]
Linear Supertypes
Product, Equals, Serializable, Serializable, (Random) ⇒ InfiniteStream[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RandomStream
  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 RandomStream(producer: (Random) ⇒ T)

    Permalink

    producer

    a function that, given an RND, produces one value of type T

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: (InfiniteStream[T]) ⇒ A): (Random) ⇒ A

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

    Permalink

    Builds an infinite stream, given an rng

    Builds an infinite stream, given an rng

    rng

    a random numbers generator

    returns

    a stream of data produced by producer

    Definition Classes
    RandomStream → 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) ⇒ InfiniteStream[T]

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  9. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    Any
  13. def map[U](g: (T) ⇒ U): RandomStream[U]

    Permalink

    Applies a function to the results of this stream, streaming the results

    Applies a function to the results of this stream, streaming the results

    U

    the function's result type

    g

    the function to apply

    returns

    a new stream of values ot type U

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

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

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

    Permalink
    Definition Classes
    AnyRef
  17. val producer: (Random) ⇒ T

    Permalink

    a function that, given an RND, produces one value of type T

  18. def reset(seed: Long): Unit

    Permalink

    Default reset - does nothing; probably it's overridden in subclasses

    Default reset - does nothing; probably it's overridden in subclasses

    seed

    the seed for reset

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. def zipWith[U](anotherStream: RandomStream[U]): RandomStream[(T, U)]

    Permalink

    Zip with another random stream, producing pairs of values

    Zip with another random stream, producing pairs of values

    U

    type of values produced by another stream

    anotherStream

    another stream

    returns

    as stream of values of type (T, U)

Inherited from Product

Inherited from Equals

Inherited from Serializable

Inherited from Serializable

Inherited from (Random) ⇒ InfiniteStream[T]

Inherited from AnyRef

Inherited from Any

Ungrouped