O - The type of the complete object.public static final class RecordCodecBuilder.Instance<O> extends Object implements Applicative RecordCodecBuilder<O,_>
Applicative instance for RecordCodecBuilder.| Constructor and Description |
|---|
Instance() |
| Modifier and Type | Method and Description |
|---|---|
<A,B,R> RecordCodecBuilder<O,R> |
ap2(RecordCodecBuilder<O,(A,B) -> R> func,
RecordCodecBuilder<O,A> a,
RecordCodecBuilder<O,B> b)
|
<T1,T2,T3,R> |
ap3(RecordCodecBuilder<O,(T1,T2,T3) -> R> func,
RecordCodecBuilder<O,T1> t1,
RecordCodecBuilder<O,T2> t2,
RecordCodecBuilder<O,T3> t3)
Maps the contents of the input containers to a container of
R using a wrapped Function3. |
<T1,T2,T3,T4,R> |
ap4(RecordCodecBuilder<O,(T1,T2,T3,T4) -> R> func,
RecordCodecBuilder<O,T1> t1,
RecordCodecBuilder<O,T2> t2,
RecordCodecBuilder<O,T3> t3,
RecordCodecBuilder<O,T4> t4)
Maps the contents of the input containers to a container of
R using a wrapped Function4. |
<A> RecordCodecBuilder<O,A> |
deprecated(A a,
int since)
Creates a builder for the given singleton field value with a deprecated lifecycle.
|
<A,R> (RecordCodecBuilder<O,A>) -> RecordCodecBuilder<O,R> |
lift1(RecordCodecBuilder<O,(A) -> R> function)
Lifts a wrapped transformation function into a function between containers.
|
<T,R> RecordCodecBuilder<O,R> |
map((? super T) -> ? extends R func,
RecordCodecBuilder<O,T> ts)
Maps the contents of
ts from T to R using the func. |
<A> RecordCodecBuilder<O,A> |
point(A a)
Creates a builder for the given singleton field value with the experimental lifecycle.
|
<A> RecordCodecBuilder<O,A> |
point(A a,
Lifecycle lifecycle)
Creates a builder for the given singleton field value with the given lifecycle.
|
<A> RecordCodecBuilder<O,A> |
stable(A a)
Creates a builder for the given singleton field value with the stable lifecycle.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic <A> RecordCodecBuilder<O,A> stable(A a)
A - The type of the field.a - The singleton value.RecordCodecBuilder.stable(Object)public <A> RecordCodecBuilder<O,A> deprecated(A a, int since)
A - The type of the field.a - The singleton value.RecordCodecBuilder.deprecated(Object, int)public <A> RecordCodecBuilder<O,A> point(A a, Lifecycle lifecycle)
A - The type of the field.a - The singleton value.lifecycle - The lifecycle of the value.RecordCodecBuilder.point(Object, Lifecycle)public <A> RecordCodecBuilder<O,A> point(A a)
point in interface Applicative RecordCodecBuilder<O,_>A - The type of the field.a - The singleton value.RecordCodecBuilder.point(Object)public <A,R> (RecordCodecBuilder<O,A>) -> RecordCodecBuilder<O,R> lift1(RecordCodecBuilder<O,(A) -> R> function)
Applicativelift1 in interface Applicative RecordCodecBuilder<O,_>A - The input type.R - The output type.function - The container containing the transformation function.public <A,B,R> RecordCodecBuilder<O,R> ap2(RecordCodecBuilder<O,(A,B) -> R> func, RecordCodecBuilder<O,A> a, RecordCodecBuilder<O,B> b)
Applicativeap2 in interface Applicative RecordCodecBuilder<O,_>A - The first input type.B - The second input type.R - The output type.func - The wrapped transformation function.a - The first input container that will be transformed.b - The second input container that will be transformed.public <T1,T2,T3,R> RecordCodecBuilder<O,R> ap3(RecordCodecBuilder<O,(T1,T2,T3) -> R> func, RecordCodecBuilder<O,T1> t1, RecordCodecBuilder<O,T2> t2, RecordCodecBuilder<O,T3> t3)
ApplicativeR using a wrapped Function3.ap3 in interface Applicative RecordCodecBuilder<O,_>T1 - The first input type.T2 - The second input type.T3 - The third input type.R - The output type.func - The wrapped transformation function.t1 - The first input container that will be transformed.t2 - The second input container that will be transformed.t3 - The third input container that will be transformed.public <T1,T2,T3,T4,R> RecordCodecBuilder<O,R> ap4(RecordCodecBuilder<O,(T1,T2,T3,T4) -> R> func, RecordCodecBuilder<O,T1> t1, RecordCodecBuilder<O,T2> t2, RecordCodecBuilder<O,T3> t3, RecordCodecBuilder<O,T4> t4)
ApplicativeR using a wrapped Function4.ap4 in interface Applicative RecordCodecBuilder<O,_>T1 - The first input type.T2 - The second input type.T3 - The third input type.T4 - The fourth input type.R - The output type.func - The wrapped transformation function.t1 - The first input container that will be transformed.t2 - The second input container that will be transformed.t3 - The third input container that will be transformed.t4 - The fourth input container that will be transformed.public <T,R> RecordCodecBuilder<O,R> map((? super T) -> ? extends R func, RecordCodecBuilder<O,T> ts)
Functorts from T to R using the func.map in interface Functor RecordCodecBuilder<O,_>T - The input type.R - The output type.func - The transformation function.ts - The input container that will be transformed.