Class/Object

com.salesforce.op.testkit

RandomSet

Related Docs: object RandomSet | package testkit

Permalink

case class RandomSet[DataType, SetType <: OPSet[DataType]](values: RandomStream[Set[DataType]])(implicit evidence$1: scala.reflect.api.JavaUniverse.WeakTypeTag[SetType]) extends StandardRandomData[SetType] with Product with Serializable

Generator of sets

DataType

the type of data in sets

SetType

the feature type of the data generated

values

the stream of longs used as the source

Linear Supertypes
Product, Equals, StandardRandomData[SetType], RandomData[SetType], PartiallyDefined, InfiniteStream[SetType], Serializable, Serializable, Iterator[SetType], TraversableOnce[SetType], GenTraversableOnce[SetType], FeatureFactoryOwner[SetType], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RandomSet
  2. Product
  3. Equals
  4. StandardRandomData
  5. RandomData
  6. PartiallyDefined
  7. InfiniteStream
  8. Serializable
  9. Serializable
  10. Iterator
  11. TraversableOnce
  12. GenTraversableOnce
  13. FeatureFactoryOwner
  14. AnyRef
  15. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RandomSet(values: RandomStream[Set[DataType]])(implicit arg0: scala.reflect.api.JavaUniverse.WeakTypeTag[SetType])

    Permalink

    values

    the stream of longs used as the source

Type Members

  1. class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]] with Iterator[Seq[B]]

    Permalink
    Definition Classes
    Iterator

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++[B >: SetType](that: ⇒ GenTraversableOnce[B]): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  4. def /:[B](z: B)(op: (B, SetType) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  5. def :\[B](z: B)(op: (SetType, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def addString(b: StringBuilder): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  8. def addString(b: StringBuilder, sep: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  9. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Permalink
    Definition Classes
    TraversableOnce
  10. def aggregate[B](z: ⇒ B)(seqop: (B, SetType) ⇒ B, combop: (B, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def buffered: BufferedIterator[SetType]

    Permalink
    Definition Classes
    Iterator
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def collect[B](pf: PartialFunction[SetType, B]): Iterator[B]

    Permalink
    Definition Classes
    Iterator
    Annotations
    @migration
    Migration

    (Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.

  15. def collectFirst[B](pf: PartialFunction[SetType, B]): Option[B]

    Permalink
    Definition Classes
    TraversableOnce
  16. def contains(elem: Any): Boolean

    Permalink
    Definition Classes
    Iterator
  17. def copyToArray[B >: SetType](xs: Array[B], start: Int, len: Int): Unit

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  18. def copyToArray[B >: SetType](xs: Array[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  19. def copyToArray[B >: SetType](xs: Array[B], start: Int): Unit

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  20. def copyToBuffer[B >: SetType](dest: Buffer[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce
  21. def corresponds[B](that: GenTraversableOnce[B])(p: (SetType, B) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    Iterator
  22. def count(p: (SetType) ⇒ Boolean): Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  23. def drop(n: Int): Iterator[SetType]

    Permalink
    Definition Classes
    Iterator
  24. def dropWhile(p: (SetType) ⇒ Boolean): Iterator[SetType]

    Permalink
    Definition Classes
    Iterator
  25. def duplicate: (Iterator[SetType], Iterator[SetType])

    Permalink
    Definition Classes
    Iterator
  26. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. def exists(p: (SetType) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  28. def filter(p: (SetType) ⇒ Boolean): Iterator[SetType]

    Permalink
    Definition Classes
    Iterator
  29. def filterNot(p: (SetType) ⇒ Boolean): Iterator[SetType]

    Permalink
    Definition Classes
    Iterator
  30. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  31. def find(p: (SetType) ⇒ Boolean): Option[SetType]

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  32. def flatMap[B](f: (SetType) ⇒ GenTraversableOnce[B]): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  33. def fold[A1 >: SetType](z: A1)(op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  34. def foldLeft[B](z: B)(op: (B, SetType) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  35. def foldRight[B](z: B)(op: (SetType, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  36. def forall(p: (SetType) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  37. def foreach[U](f: (SetType) ⇒ U): Unit

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  38. val ftFactory: FeatureTypeFactory[SetType]

    Permalink
    Attributes
    protected
    Definition Classes
    FeatureFactoryOwner
  39. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  40. def grouped[B >: SetType](size: Int): GroupedIterator[B]

    Permalink
    Definition Classes
    Iterator
  41. def hasDefiniteSize: Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  42. def hasNext: Boolean

    Permalink

    Tell whether there is a next value.

    Tell whether there is a next value. The stream is infinite, the answer is Yes.

    returns

    true

    Definition Classes
    InfiniteStream → Iterator
  43. def indexOf[B >: SetType](elem: B): Int

    Permalink
    Definition Classes
    Iterator
  44. def indexWhere(p: (SetType) ⇒ Boolean): Int

    Permalink
    Definition Classes
    Iterator
  45. def isEmpty: Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  46. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  47. def isTraversableAgain: Boolean

    Permalink
    Definition Classes
    Iterator → GenTraversableOnce
  48. def length: Int

    Permalink
    Definition Classes
    Iterator
  49. def limit(n: Int): List[SetType]

    Permalink

    Produces a list of n values

    Produces a list of n values

    n

    the number of values

    returns

    a list of values

    Definition Classes
    InfiniteStream
  50. def map[U](f: (SetType) ⇒ U): InfiniteStream[U]

    Permalink

    Transforms this stream to the stream of values of type U, by mapping

    Transforms this stream to the stream of values of type U, by mapping

    U

    the type of result of f

    f

    the function that transforms data

    returns

    another InfiniteStream, with values produced by applying f

    Definition Classes
    InfiniteStream → Iterator
  51. def max[B >: SetType](implicit cmp: Ordering[B]): SetType

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  52. def maxBy[B](f: (SetType) ⇒ B)(implicit cmp: Ordering[B]): SetType

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  53. def min[B >: SetType](implicit cmp: Ordering[B]): SetType

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  54. def minBy[B](f: (SetType) ⇒ B)(implicit cmp: Ordering[B]): SetType

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  55. def mkString: String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  56. def mkString(sep: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  57. def mkString(start: String, sep: String, end: String): String

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  58. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  59. def next(): SetType

    Permalink
    Definition Classes
    RandomData → Iterator
  60. def nonEmpty: Boolean

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  61. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  63. def padTo[A1 >: SetType](len: Int, elem: A1): Iterator[A1]

    Permalink
    Definition Classes
    Iterator
  64. def partition(p: (SetType) ⇒ Boolean): (Iterator[SetType], Iterator[SetType])

    Permalink
    Definition Classes
    Iterator
  65. def patch[B >: SetType](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  66. def product[B >: SetType](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  67. def reduce[A1 >: SetType](op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  68. def reduceLeft[B >: SetType](op: (B, SetType) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce
  69. def reduceLeftOption[B >: SetType](op: (B, SetType) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  70. def reduceOption[A1 >: SetType](op: (A1, A1) ⇒ A1): Option[A1]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  71. def reduceRight[B >: SetType](op: (SetType, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  72. def reduceRightOption[B >: SetType](op: (SetType, B) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  73. def reset(seed: Long): Unit

    Permalink

    Reset this generator, by, say, seeding your rng(s)

    Reset this generator, by, say, seeding your rng(s)

    seed

    the seed

    returns

    this instance

    Definition Classes
    StandardRandomDataRandomData
  74. def reversed: List[SetType]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  75. val rng: Random

    Permalink

    Random numbers generator used for a variety of purposes; not necessarily the values

    Random numbers generator used for a variety of purposes; not necessarily the values

    returns

    the generator, standard scala.util.Random

    Attributes
    protected
    Definition Classes
    RandomData
  76. def sameElements(that: Iterator[_]): Boolean

    Permalink
    Definition Classes
    Iterator
  77. def scanLeft[B](z: B)(op: (B, SetType) ⇒ B): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  78. def scanRight[B](z: B)(op: (SetType, B) ⇒ B): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  79. def seq: Iterator[SetType]

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  80. def size: Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  81. def skip: Boolean

    Permalink

    A flag that tells whether we should skip the value and build an empty instead It's overridden in ProbabilityOfEmpty trait

    A flag that tells whether we should skip the value and build an empty instead It's overridden in ProbabilityOfEmpty trait

    returns

    true if skip

    Definition Classes
    PartiallyDefined
  82. def slice(from: Int, until: Int): Iterator[SetType]

    Permalink
    Definition Classes
    Iterator
  83. def sliding[B >: SetType](size: Int, step: Int): GroupedIterator[B]

    Permalink
    Definition Classes
    Iterator
  84. def span(p: (SetType) ⇒ Boolean): (Iterator[SetType], Iterator[SetType])

    Permalink
    Definition Classes
    Iterator
  85. def streamOfValues: InfiniteStream[SetType.Value]

    Permalink

    Infinite stream of values produced by sourceOfData when given the rng

    Infinite stream of values produced by sourceOfData when given the rng

    returns

    a stream of random data

    Definition Classes
    StandardRandomDataRandomData
  86. def sum[B >: SetType](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  87. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  88. def take(n: Int): Iterator[SetType]

    Permalink
    Definition Classes
    Iterator
  89. def takeWhile(p: (SetType) ⇒ Boolean): Iterator[SetType]

    Permalink
    Definition Classes
    Iterator
  90. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, SetType, Col[SetType]]): Col[SetType]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  91. def toArray[B >: SetType](implicit arg0: ClassTag[B]): Array[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  92. def toBuffer[B >: SetType]: Buffer[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  93. def toIndexedSeq: IndexedSeq[SetType]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  94. def toIterable: Iterable[SetType]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  95. def toIterator: Iterator[SetType]

    Permalink
    Definition Classes
    Iterator → GenTraversableOnce
  96. def toList: List[SetType]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  97. def toMap[T, U](implicit ev: <:<[SetType, (T, U)]): Map[T, U]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  98. def toSeq: Seq[SetType]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  99. def toSet[B >: SetType]: Set[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  100. def toStream: Stream[SetType]

    Permalink
    Definition Classes
    Iterator → GenTraversableOnce
  101. def toString(): String

    Permalink
    Definition Classes
    Iterator → AnyRef → Any
  102. def toTraversable: Traversable[SetType]

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  103. def toVector: Vector[SetType]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  104. val values: RandomStream[Set[DataType]]

    Permalink

    the stream of longs used as the source

  105. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  108. def withFilter(p: (SetType) ⇒ Boolean): Iterator[SetType]

    Permalink
    Definition Classes
    Iterator
  109. def zip[B](that: Iterator[B]): Iterator[(SetType, B)]

    Permalink
    Definition Classes
    Iterator
  110. def zipAll[B, A1 >: SetType, B1 >: B](that: Iterator[B], thisElem: A1, thatElem: B1): Iterator[(A1, B1)]

    Permalink
    Definition Classes
    Iterator
  111. def zipWithIndex: Iterator[(SetType, Int)]

    Permalink
    Definition Classes
    Iterator

Inherited from Product

Inherited from Equals

Inherited from StandardRandomData[SetType]

Inherited from RandomData[SetType]

Inherited from PartiallyDefined

Inherited from InfiniteStream[SetType]

Inherited from Serializable

Inherited from Serializable

Inherited from Iterator[SetType]

Inherited from TraversableOnce[SetType]

Inherited from GenTraversableOnce[SetType]

Inherited from FeatureFactoryOwner[SetType]

Inherited from AnyRef

Inherited from Any

Ungrouped