public final class MaybePrism
extends Object
-
Constructor Summary
Constructors
-
Method Summary
A
Prism that focuses on present values in a
Maybe.
A
Prism that focuses on absent values in a
Maybe, for symmetry.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MaybePrism
private MaybePrism()
-
Method Details
-
_just
A
Prism that focuses on present values in a
Maybe.
- Type Parameters:
A - Maybe the input value
B - Maybe the output value
- Returns:
- the
Prism
-
_nothing
A
Prism that focuses on absent values in a
Maybe, for symmetry.
- Type Parameters:
A - Maybe the input and output value
- Returns:
- the
Prism