object Choose extends Serializable
Provides implicit org.scalacheck.Gen.Choose instances
- Alphabetic
- By Inheritance
- Choose
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class IllegalBoundsError[A] extends IllegalArgumentException
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit val chooseBigDecimal: Choose[BigDecimal]
Choose a BigDecimal number between two given numbers.
Choose a BigDecimal number between two given numbers.
The minimum scale used will be 34. That means that the fractional part will have at least 34 digits (more if one of the given numbers has a scale larger than 34).
The minimum scale was chosen based on Scala's default scale for expanding infinite fractions:
BigDecimal(1) / 3 // 0.3333333333333333333333333333333333
See chooseBigDecimalScale for more information about scale.
- implicit val chooseByte: Choose[Byte]
- implicit val chooseChar: Choose[Char]
- implicit val chooseDouble: Choose[Double]
- implicit val chooseFiniteDuration: Choose[FiniteDuration]
- implicit val chooseFloat: Choose[Float]
- implicit val chooseInt: Choose[Int]
- implicit val chooseJavaBigDecimal: Choose[BigDecimal]
Choose a java.math.BigDecimal number between two given numbers.
Choose a java.math.BigDecimal number between two given numbers.
See chooseBigDecimal and chooseBigDecimalScale for more comments.
- implicit val chooseLong: Choose[Long]
- implicit val chooseShort: Choose[Short]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def xmap[T, U](from: (T) => U, to: (U) => T)(implicit c: Choose[T]): Choose[U]
Transform a Choose[T] to a Choose[U] where T and U are two isomorphic types whose relationship is described by the provided transformation functions.
Transform a Choose[T] to a Choose[U] where T and U are two isomorphic types whose relationship is described by the provided transformation functions. (exponential functor map)
- implicit object chooseBigInt extends Choose[BigInt]
- implicit object chooseBigInteger extends Choose[BigInteger]
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated