Packages

object Choose extends JavaTimeChoose with Serializable

Provides implicit org.scalacheck.Gen.Choose instances

Source
Gen.scala
Linear Supertypes
Serializable, JavaTimeChoose, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Choose
  2. Serializable
  3. JavaTimeChoose
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class IllegalBoundsError[A] extends IllegalArgumentException

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. 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.

  6. implicit val chooseByte: Choose[Byte]
  7. implicit val chooseChar: Choose[Char]
  8. implicit val chooseDouble: Choose[Double]
  9. implicit val chooseFiniteDuration: Choose[FiniteDuration]
  10. implicit val chooseFloat: Choose[Float]
  11. implicit final lazy val chooseInstant: Choose[Instant]
    Definition Classes
    JavaTimeChoose
  12. implicit val chooseInt: Choose[Int]
  13. 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.

  14. implicit final lazy val chooseJavaDuration: Choose[Duration]
    Definition Classes
    JavaTimeChoose
  15. implicit final lazy val chooseLocalDate: Choose[LocalDate]
    Definition Classes
    JavaTimeChoose
  16. implicit final lazy val chooseLocalDateTime: Choose[LocalDateTime]
    Definition Classes
    JavaTimeChoose
  17. implicit final lazy val chooseLocalTime: Choose[LocalTime]
    Definition Classes
    JavaTimeChoose
  18. implicit val chooseLong: Choose[Long]
  19. implicit final lazy val chooseMonth: Choose[Month]
    Definition Classes
    JavaTimeChoose
  20. implicit final lazy val chooseMonthDay: Choose[MonthDay]
    Definition Classes
    JavaTimeChoose
  21. implicit final lazy val chooseOffsetDateTime: Choose[OffsetDateTime]
    Definition Classes
    JavaTimeChoose
  22. implicit final lazy val chooseOffsetTime: Choose[OffsetTime]
    Definition Classes
    JavaTimeChoose
  23. implicit val chooseShort: Choose[Short]
  24. implicit final lazy val chooseYear: Choose[Year]
    Definition Classes
    JavaTimeChoose
  25. implicit final lazy val chooseYearMonth: Choose[YearMonth]
    Definition Classes
    JavaTimeChoose
  26. implicit final lazy val chooseZoneOffset: Choose[ZoneOffset]

    ZoneOffset values have some unusual semantics when it comes to ordering.

    ZoneOffset values have some unusual semantics when it comes to ordering. The short explanation is that (ZoneOffset.MAX < ZoneOffset.MIN) == true. This is because for any given LocalDateTime, that time applied to ZoneOffset.MAX will be an older moment in time than that same LocalDateTime applied to ZoneOffset.MIN.

    From the JavaDoc,

    "The offsets are compared in the order that they occur for the same time of day around the world. Thus, an offset of +10:00 comes before an offset of +09:00 and so on down to -18:00."

    This has the following implication,

     scala> ZoneOffset.MIN
    val res0: java.time.ZoneOffset = -18:00
    
    scala> ZoneOffset.MAX
    val res1: java.time.ZoneOffset = +18:00
    
    scala> ZoneOffset.MIN.compareTo(ZoneOffset.MAX)
    val res3: Int = 129600

    This implementation is consistent with that comparison.

    Definition Classes
    JavaTimeChoose
    See also

    https://docs.oracle.com/javase/8/docs/api/java/time/ZoneOffset.html#compareTo-java.time.ZoneOffset-

  27. implicit final lazy val chooseZonedDateTime: Choose[ZonedDateTime]
    Definition Classes
    JavaTimeChoose
  28. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  29. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  31. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  32. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  33. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  43. 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)

  44. implicit object chooseBigInt extends Choose[BigInt]
  45. implicit object chooseBigInteger extends Choose[BigInteger]

Inherited from Serializable

Inherited from JavaTimeChoose

Inherited from AnyRef

Inherited from Any

Ungrouped