Numeric

zio.blocks.schema.Validation.Numeric
See theNumeric companion trait
object Numeric

The numeric constraints.

Attributes

Companion
trait
Source
Validation.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Numeric.type

Members list

Type members

Classlikes

case object Negative extends Numeric[Nothing]

The value is less than zero.

The value is less than zero.

Attributes

Source
Validation.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Numeric[Nothing]
trait Validation[Nothing]
class Object
trait Matchable
class Any
Show all
Self type
Negative.type
case object NonNegative extends Numeric[Nothing]

The value is zero or greater.

The value is zero or greater.

Attributes

Source
Validation.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Numeric[Nothing]
trait Validation[Nothing]
class Object
trait Matchable
class Any
Show all
Self type
case object NonPositive extends Numeric[Nothing]

The value is zero or less.

The value is zero or less.

Attributes

Source
Validation.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Numeric[Nothing]
trait Validation[Nothing]
class Object
trait Matchable
class Any
Show all
Self type
case object Positive extends Numeric[Nothing]

The value is greater than zero.

The value is greater than zero.

Attributes

Source
Validation.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Numeric[Nothing]
trait Validation[Nothing]
class Object
trait Matchable
class Any
Show all
Self type
Positive.type
case class Range[A](min: Option[A], max: Option[A]) extends Numeric[A]

The value is at least min and at most max; None leaves that side open.

The value is at least min and at most max; None leaves that side open.

Attributes

Source
Validation.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Numeric[A]
trait Validation[A]
class Object
trait Matchable
class Any
Show all
case class Set[A](values: Set[A]) extends Numeric[A]

The value is one of values.

The value is one of values.

Attributes

Source
Validation.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Numeric[A]
trait Validation[A]
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala