Contramap

zio.schema.validation.Predicate.Contramap
final case class Contramap[B, A](pred: Bool[Predicate[A]], f: B => A) extends Predicate[B]

Attributes

Source
Predicate.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Predicate[B]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

Attributes

Inherited from:
Predicate
Source
Predicate.scala

Attributes

Inherited from:
Predicate
Source
Predicate.scala

Value members

Concrete methods

def validate(value: B): Result

Attributes

Source
Predicate.scala

Inherited methods

def contramap[B](f: B => B): Predicate[B]

Attributes

Inherited from:
Predicate
Source
Predicate.scala

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala