Package io.atlassian.fugue.optic.law
Class IsoLaws<S,A>
- java.lang.Object
-
- io.atlassian.fugue.optic.law.IsoLaws<S,A>
-
public final class IsoLaws<S,A> extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsEq<Either<java.lang.String,S>>modifyEitherFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<S>modifyFunctionFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<S>modifyIdentity(S s)modify id = idIsEq<java.util.List<S>>modifyIterableFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<Option<S>>modifyOptionFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<Pair<S,S>>modifyPairFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<S>modifySupplierFPoint(S s)modifyF Applicative.point(_) = Applicative.point(_)IsEq<S>roundTripOneWay(S s)get and reverseGet forms an Isomorphism: round trip one wayIsEq<A>roundTripOtherWay(A a)get and reverseGet forms an Isomorphism: round trip other wayIsEq<S>set(S s, A a)set is a weaker version of reverseGet
-
-
-
Method Detail
-
roundTripOneWay
public IsEq<S> roundTripOneWay(S s)
get and reverseGet forms an Isomorphism: round trip one way
-
roundTripOtherWay
public IsEq<A> roundTripOtherWay(A a)
get and reverseGet forms an Isomorphism: round trip other way
-
modifySupplierFPoint
public IsEq<S> modifySupplierFPoint(S s)
modifyF Applicative.point(_) = Applicative.point(_)
-
modifyEitherFPoint
public IsEq<Either<java.lang.String,S>> modifyEitherFPoint(S s)
modifyF Applicative.point(_) = Applicative.point(_)
-
modifyOptionFPoint
public IsEq<Option<S>> modifyOptionFPoint(S s)
modifyF Applicative.point(_) = Applicative.point(_)
-
modifyPairFPoint
public IsEq<Pair<S,S>> modifyPairFPoint(S s)
modifyF Applicative.point(_) = Applicative.point(_)
-
modifyFunctionFPoint
public IsEq<S> modifyFunctionFPoint(S s)
modifyF Applicative.point(_) = Applicative.point(_)
-
-