https://github.com/foxcapades/iffy
Java Either Type
https://github.com/foxcapades/iffy
java java14 options
Last synced: 8 months ago
JSON representation
Java Either Type
- Host: GitHub
- URL: https://github.com/foxcapades/iffy
- Owner: Foxcapades
- License: mit
- Created: 2020-05-30T23:31:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-31T04:28:51.000Z (almost 6 years ago)
- Last Synced: 2025-02-12T17:19:24.618Z (about 1 year ago)
- Topics: java, java14, options
- Language: Java
- Size: 354 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.adoc
- License: license
Awesome Lists containing this project
README
= Iffy
image:https://img.shields.io/badge/java-14-red[]
image:https://img.shields.io/maven-central/v/io.vulpine.lib/iffy[Maven Central, link="https://search.maven.org/search?q=g:io.vulpine.lib%20AND%20a:iffy"]
image:https://img.shields.io/badge/docs-javadoc-ff69b4["Java Docs", link="https://vulpine-io.github.io/Iffy/javadoc/"]
image:https://img.shields.io/github/license/Vulpine-IO/Iffy[]
Indecisive `Either` types for java.
[source, java]
----
Either foo = Either.ofLeft("Hello");
Either bar = foo.mapLeft(Integer::parseInt);
float fizz = bar.fold(Float.class::cast, Float.class::cast);
----