Package com.github.tonivade.purefun.free
Class EitherK<F extends Kind<F,?>,G extends Kind<G,?>,T>
java.lang.Object
com.github.tonivade.purefun.free.EitherK<F,G,T>
- All Implemented Interfaces:
EitherKOf<F,,G, T> Kind<EitherK<F,,G, ?>, T> Serializable
public final class EitherK<F extends Kind<F,?>,G extends Kind<G,?>,T>
extends Object
implements EitherKOf<F,G,T>, Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncoflatMap(Comonad<F> comonadF, Comonad<G> comonadG, Function1<? super EitherK<F, G, ? extends T>, ? extends R> mapper) contramap(Contravariant<F> contravariantF, Contravariant<G> contravariantG, Function1<? super R, ? extends T> contramap) booleangetLeft()getRight()inthashCode()booleanisLeft()booleanisRight()swap()toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
EQUAL
-
either
-
-
Constructor Details
-
EitherK
-
-
Method Details
-
map
-
mapK
-
mapLeftK
-
foldK
-
coflatMap
-
extract
-
contramap
public <R> EitherK<F,G, contramapR> (Contravariant<F> contravariantF, Contravariant<G> contravariantG, Function1<? super R, ? extends T> contramap) -
swap
-
isLeft
public boolean isLeft() -
isRight
public boolean isRight() -
getLeft
-
getRight
-
left
-
right
-
hashCode
public int hashCode() -
equals
-
toString
-