BooleanCodec

zio.http.codec.TextCodec.BooleanCodec
case object BooleanCodec extends TextCodec[Boolean]

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait TextCodec[Boolean]
trait PartialFunction[String, Boolean]
trait String => Boolean
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton

Value members

Concrete methods

def apply(value: String): Boolean
def describe: String
def encode(value: Boolean): String
def isDefinedAt(value: String): Boolean
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any

Inherited methods

def andThen[C](k: PartialFunction[Boolean, C]): PartialFunction[A, C]

Attributes

Inherited from:
PartialFunction
override def andThen[C](k: Boolean => C): PartialFunction[A, C]

Attributes

Definition Classes
PartialFunction -> Function1
Inherited from:
PartialFunction
def applyOrElse[A1 <: String, B1 >: Boolean](x: A1, default: A1 => B1): B1

Attributes

Inherited from:
PartialFunction
def compose[R](k: PartialFunction[R, String]): PartialFunction[R, B]

Attributes

Inherited from:
PartialFunction
def compose[A](g: A => String): A => R

Attributes

Inherited from:
Function1
final def decode(value: String): Option[A]

Attributes

Inherited from:
TextCodec
def elementWise: ElementWiseExtractor[A, B]

Attributes

Inherited from:
PartialFunction
def fromProduct(p: Product): MirroredMonoType

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
def lift: A => Option[B]

Attributes

Inherited from:
PartialFunction
def orElse[A1 <: String, B1 >: Boolean](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

Attributes

Inherited from:
PartialFunction
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def runWith[U](action: Boolean => U): A => Boolean

Attributes

Inherited from:
PartialFunction
def unapply(a: String): Option[B]

Attributes

Inherited from:
PartialFunction