final case class Sequence[Col, Elem, I](schemaA: Schema[Elem], fromChunk: (Chunk[Elem]) => Col, toChunk: (Col) => Chunk[Elem], annotations: Chunk[Any] = Chunk.empty, identity: I) extends Collection[Col, Elem] with Product with Serializable
- Self Type
- Sequence[Col, Elem, I]
- Alphabetic
- By Inheritance
- Sequence
- Serializable
- Product
- Equals
- Collection
- Schema
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Sequence(schemaA: Schema[Elem], fromChunk: (Chunk[Elem]) => Col, toChunk: (Col) => Chunk[Elem], annotations: Chunk[Any] = Chunk.empty, identity: I)
Type Members
- type Accessors[Lens[_, _], Prism[_, _], Traversal[_, _]] = Traversal[Col, Elem]
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def <*>[B](that: Schema[B]): Schema[(Col, B)]
A symbolic operator for zip.
- def <+>[B](that: Schema[B]): Schema[Either[Col, 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[Col]]
A symbolic operator for optional.
- def annotate(annotation: Any): Sequence[Col, Elem, I]
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
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @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, Col]
The default value for a
Schemaof typeA. - def diff(thisValue: Col, thatValue: Col, differ: Option[Differ[Col]] = None): Diff[Col]
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])
- val fromChunk: (Chunk[Elem]) => Col
- def fromDynamic(value: DynamicValue): Either[String, Col]
- Definition Classes
- Schema
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val identity: I
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeAccessors(b: AccessorBuilder): Traversal[Col, Elem]
- def migrate[B](newSchema: Schema[B]): Either[String, (Col) => 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[Col]]
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[Col, 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[Col]
- Definition Classes
- Schema
- def patch(oldValue: Col, diff: Diff[Col]): Either[String, Col]
Patch value with a Diff.
Patch value with a Diff.
- Definition Classes
- Schema
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def repeated: Schema[Chunk[Col]]
- Definition Classes
- Schema
- val schemaA: Schema[Elem]
- def serializable: Schema[Schema[Col]]
- Definition Classes
- Schema
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val toChunk: (Col) => Chunk[Elem]
- def toDynamic(value: Col): DynamicValue
- Definition Classes
- Schema
- def toSemiDynamic: Schema[(Col, Schema[Col])]
- Definition Classes
- Schema
- def toString(): String
- Definition Classes
- Sequence → AnyRef → Any
- def transform[B](f: (Col) => B, g: (B) => Col)(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: (Col) => Either[String, B], g: (B) => Either[String, Col])(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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def zip[B](that: Schema[B]): Schema[(Col, 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