sealed case class Enum22[A1 <: Z, A2 <: Z, A3 <: Z, A4 <: Z, A5 <: Z, A6 <: Z, A7 <: Z, A8 <: Z, A9 <: Z, A10 <: Z, A11 <: Z, A12 <: Z, A13 <: Z, A14 <: Z, A15 <: Z, A16 <: Z, A17 <: Z, A18 <: Z, A19 <: Z, A20 <: Z, A21 <: Z, A22 <: Z, Z](case1: Schema.Case[A1, Z], case2: Schema.Case[A2, Z], case3: Schema.Case[A3, Z], case4: Schema.Case[A4, Z], case5: Schema.Case[A5, Z], case6: Schema.Case[A6, Z], case7: Schema.Case[A7, Z], case8: Schema.Case[A8, Z], case9: Schema.Case[A9, Z], case10: Schema.Case[A10, Z], case11: Schema.Case[A11, Z], case12: Schema.Case[A12, Z], case13: Schema.Case[A13, Z], case14: Schema.Case[A14, Z], case15: Schema.Case[A15, Z], case16: Schema.Case[A16, Z], case17: Schema.Case[A17, Z], case18: Schema.Case[A18, Z], case19: Schema.Case[A19, Z], case20: Schema.Case[A20, Z], case21: Schema.Case[A21, Z], case22: Schema.Case[A22, Z], annotations: Chunk[Any] = Chunk.empty) extends Enum[Z] with Product with Serializable
- Self Type
- Schema.Enum22[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, Z]
- Alphabetic
- By Inheritance
- Enum22
- Serializable
- Serializable
- Product
- Equals
- Enum
- Schema
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Enum22(case1: Schema.Case[A1, Z], case2: Schema.Case[A2, Z], case3: Schema.Case[A3, Z], case4: Schema.Case[A4, Z], case5: Schema.Case[A5, Z], case6: Schema.Case[A6, Z], case7: Schema.Case[A7, Z], case8: Schema.Case[A8, Z], case9: Schema.Case[A9, Z], case10: Schema.Case[A10, Z], case11: Schema.Case[A11, Z], case12: Schema.Case[A12, Z], case13: Schema.Case[A13, Z], case14: Schema.Case[A14, Z], case15: Schema.Case[A15, Z], case16: Schema.Case[A16, Z], case17: Schema.Case[A17, Z], case18: Schema.Case[A18, Z], case19: Schema.Case[A19, Z], case20: Schema.Case[A20, Z], case21: Schema.Case[A21, Z], case22: Schema.Case[A22, Z], annotations: Chunk[Any] = Chunk.empty)
Type Members
- type Accessors[Lens[_, _], Prism[_, _], Traversal[_, _]] = (Prism[Z, A1], Prism[Z, A2], Prism[Z, A3], Prism[Z, A4], Prism[Z, A5], Prism[Z, A6], Prism[Z, A7], Prism[Z, A8], Prism[Z, A9], Prism[Z, A10], Prism[Z, A11], Prism[Z, A12], Prism[Z, A13], Prism[Z, A14], Prism[Z, A15], Prism[Z, A16], Prism[Z, A17], Prism[Z, A18], Prism[Z, A19], Prism[Z, A20], Prism[Z, A21], Prism[Z, A22])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
<*>[B](that: Schema[B]): Schema[(Z, B)]
A symbolic operator for zip.
-
def
<+>[B](that: Schema[B]): Schema[Either[Z, B]]
A symbolic operator for orElseEither.
A symbolic operator for orElseEither.
- Definition Classes
- Schema
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
?: Schema[Option[Z]]
A symbolic operator for optional.
-
def
annotate(annotation: Any): Schema.Enum22[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, Z]
Returns a new schema that with
annotation -
val
annotations: Chunk[Any]
Chunk of annotations for this schema
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
ast: SchemaAst
- Definition Classes
- Schema
- val case1: Schema.Case[A1, Z]
- val case10: Schema.Case[A10, Z]
- val case11: Schema.Case[A11, Z]
- val case12: Schema.Case[A12, Z]
- val case13: Schema.Case[A13, Z]
- val case14: Schema.Case[A14, Z]
- val case15: Schema.Case[A15, Z]
- val case16: Schema.Case[A16, Z]
- val case17: Schema.Case[A17, Z]
- val case18: Schema.Case[A18, Z]
- val case19: Schema.Case[A19, Z]
- val case2: Schema.Case[A2, Z]
- val case20: Schema.Case[A20, Z]
- val case21: Schema.Case[A21, Z]
- val case22: Schema.Case[A22, Z]
- val case3: Schema.Case[A3, Z]
- val case4: Schema.Case[A4, Z]
- val case5: Schema.Case[A5, Z]
- val case6: Schema.Case[A6, Z]
- val case7: Schema.Case[A7, Z]
- val case8: Schema.Case[A8, Z]
- val case9: Schema.Case[A9, Z]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
coerce[B](newSchema: Schema[B]): Either[String, Schema[B]]
Convert to Schema[B] iff B and A are homomorphic.
Convert to Schema[B] iff B and A are homomorphic.
This can be used to e.g convert between a case class and it's "generic" representation as a ListMap[String,_]
- Definition Classes
- Schema
-
def
defaultValue: Either[String, Z]
The default value for a
Schemaof typeA. -
def
diff(thisValue: Z, thatValue: Z, differ: Option[Differ[Z]] = None): Diff[Z]
Performs a diff between thisValue and thatValue.
Performs a diff between thisValue and thatValue. See zio.schema.Differ for details on the default diff algorithms.
A custom zio.schema.Differ can be supplied if the default behavior is not acceptable.
- Definition Classes
- Schema
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromDynamic(value: DynamicValue): Either[String, Z]
- Definition Classes
- Schema
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeAccessors(b: AccessorBuilder): (Prism[Z, A1], Prism[Z, A2], Prism[Z, A3], Prism[Z, A4], Prism[Z, A5], Prism[Z, A6], Prism[Z, A7], Prism[Z, A8], Prism[Z, A9], Prism[Z, A10], Prism[Z, A11], Prism[Z, A12], Prism[Z, A13], Prism[Z, A14], Prism[Z, A15], Prism[Z, A16], Prism[Z, A17], Prism[Z, A18], Prism[Z, A19], Prism[Z, A20], Prism[Z, A21], Prism[Z, A22])
-
def
migrate[B](newSchema: Schema[B]): Either[String, (Z) ⇒ Either[String, B]]
Generate a homomorphism from A to B iff A and B are homomorphic
Generate a homomorphism from A to B iff A and B are homomorphic
- Definition Classes
- Schema
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
optional: Schema[Option[Z]]
Returns a new schema that modifies the type produced by this schema to be optional.
Returns a new schema that modifies the type produced by this schema to be optional.
- Definition Classes
- Schema
-
def
orElseEither[B](that: Schema[B]): Schema[Either[Z, B]]
Returns a new schema that combines this schema and the specified schema together, modeling their either composition.
Returns a new schema that combines this schema and the specified schema together, modeling their either composition.
- Definition Classes
- Schema
-
def
ordering: Ordering[Z]
- Definition Classes
- Schema
-
def
patch(oldValue: Z, diff: Diff[Z]): Either[String, Z]
Patch value with a Diff.
Patch value with a Diff.
- Definition Classes
- Schema
-
def
repeated: Schema[Chunk[Z]]
- Definition Classes
- Schema
-
def
serializable: Schema[Schema[Z]]
- Definition Classes
- Schema
-
def
structure: ListMap[String, Schema[_]]
- Definition Classes
- Enum
- def structureWithAnnotations: ListMap[String, (Schema[_], Chunk[Any])]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toDynamic(value: Z): DynamicValue
- Definition Classes
- Schema
-
def
toSemiDynamic: Schema[(Z, Schema[Z])]
- Definition Classes
- Schema
-
def
transform[B](f: (Z) ⇒ B, g: (B) ⇒ Z)(implicit loc: SourceLocation): Schema[B]
Transforms this
Schema[A]into aSchema[B], by supplying two functions that can transform betweenAandB, without possibility of failure.Transforms this
Schema[A]into aSchema[B], by supplying two functions that can transform betweenAandB, without possibility of failure.- Definition Classes
- Schema
-
def
transformOrFail[B](f: (Z) ⇒ Either[String, B], g: (B) ⇒ Either[String, Z])(implicit loc: SourceLocation): Schema[B]
Transforms this
Schema[A]into aSchema[B], by supplying two functions that can transform betweenAandB(possibly failing in some cases).Transforms this
Schema[A]into aSchema[B], by supplying two functions that can transform betweenAandB(possibly failing in some cases).- Definition Classes
- Schema
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
zip[B](that: Schema[B]): Schema[(Z, B)]
Returns a new schema that combines this schema and the specified schema together, modeling their tuple composition.
Returns a new schema that combines this schema and the specified schema together, modeling their tuple composition.
- Definition Classes
- Schema