- Companion
- class
trait UPickleSchemaTranslation
trait BiMapProductTranslation[ReadWriter, Value, ListMap[String, Value]]
class Object
trait Matchable
class Any
Type members
Inherited classlikes
Value members
Inherited methods
override
Construct the final type to be bimapped to and from
Construct the final type to be bimapped to and from
- Definition Classes
- UPickleProductTranslation -> BiMapProductTranslation
- Inherited from
- UPickleProductTranslation
override
- Definition Classes
- UPickleProductTranslation -> BiMapProductTranslation
- Inherited from
- UPickleProductTranslation
override
Initial empty value for the type being mapped to and from, that can be built by adding field values. For instance, if the value type is Map[ String, T ], initMapVal would be Map.empty[ String, T ]
Initial empty value for the type being mapped to and from, that can be built by adding field values. For instance, if the value type is Map[ String, T ], initMapVal would be Map.empty[ String, T ]
- Returns
initial value of buildable bimap type
- Definition Classes
- UPickleProductTranslation -> BiMapProductTranslation
- Inherited from
- UPickleProductTranslation
override
Construct a schema from the two parts of a bimap.
Construct a schema from the two parts of a bimap.
- Type Params
- T
type being read/written
- Value Params
- from
MapVal => T : reader
- to
T => MapVal : writer
- Returns
type class instance for some reader/writer
- Definition Classes
- UPickleProductTranslation -> BiMapProductTranslation
- Inherited from
- UPickleProductTranslation
def translate[T, Rt <: Tuple, RVt <: Tuple, FDL <: Tuple, AFt, AFSt, AFEt, C](schema: Aux[T, ProductShape[T, Rt, RVt, AFt, AFSt, AFEt, C]])(using tr: SchemaTranslator[T, ProductShape[T, Rt, RVt, AFt, AFSt, AFEt, C], ReadWriter]): ReadWriter[T]
- Inherited from
- BiMapProductTranslation
override
def writeAdditionalFields[T](from: Map[String, T], to: ListMap[String, Value], informedBy: ReadWriter[T]): ListMap[String, Value]
- Definition Classes
- UPickleProductTranslation -> BiMapProductTranslation
- Inherited from
- UPickleProductTranslation
Givens
Inherited givens
given SchemaTranslator_T_CoproductShape_ReadWriter[T, R <: Tuple, RV <: Tuple, D, DN](using val reader: Aux[Value, R, D, DN, Option[T]], val writer: Aux[T, R, Option[Value]]): SchemaTranslator[T, CoproductShape[T, R, RV, D, DN], ReadWriter]
- Inherited from
- UPickleCoproductSchemaTranslation
given SchemaTranslator_T_SingletonShape_ReadWriter[T <: Singleton, N <: TypeName]: SchemaTranslator[T, SingletonShape[T, N], ReadWriter]
- Inherited from
- UPickleSingletonSchemaTranslation
given decoderWithAF[T, Rt <: Tuple, RVt <: Tuple, AFt, AFSt, AFEt, C](using val ex: Aux[Rt, RVt], val afExtractor: Aux[MapVal, OtherSchema[AFt], Map[String, AFt]], val afTranslator: SchemaTranslator[AFt, AFSt, OtherSchema], val prodConstr: ProductConstructor[C, RVt, AFt, T]): Decoder[T, ProductShape[T, Rt, RVt, AFt, AFSt, AFEt, C], MapVal]
- Inherited from
- BiMapProductTranslation
given decoderWithoutAF[T, Rt <: Tuple, RVt <: Tuple, C](using val ex: Aux[Rt, RVt], val prodConstr: ProductConstructor[C, RVt, Nothing, T]): Decoder[T, ProductShape[T, Rt, RVt, Nothing, Unit, Unit, C], MapVal]
- Inherited from
- BiMapProductTranslation
given encoderWithAF[T, Rt <: Tuple, RVt <: Tuple, AFt, AFSt, AFEt, C](using val inj: BiMapTupleInjector[RVt, Rt], val afInjector: Aux[Map[String, AFt], BuildMapVal, OtherSchema[AFt], BuildMapVal], val afTranslator: SchemaTranslator[AFt, AFSt, OtherSchema], val prodDeconstr: Aux[T, (AFEt, Rt), (Map[String, AFt], RVt)]): Encoder[T, ProductShape[T, Rt, RVt, AFt, AFSt, AFEt, C], MapVal]
- Inherited from
- BiMapProductTranslation
given encoderWithoutAF[T, Rt <: Tuple, RVt <: Tuple, C](using val inj: BiMapTupleInjector[RVt, Rt], val prodDeconstr: Aux[T, Rt, RVt]): Encoder[T, ProductShape[T, Rt, RVt, Nothing, Unit, Unit, C], MapVal]
- Inherited from
- BiMapProductTranslation
given fieldInjector[T, F, N <: FieldName, S](using val sr: SchemaTranslator[F, S, OtherSchema]): FieldInjector[T, F, N, S, BuildMapVal]
- Inherited from
- BiMapProductTranslation