Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/foxcapades/iffy
Java Either Type
https://github.com/foxcapades/iffy
java java14 options
Last synced: 5 days 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-31T04:28:51.000Z (over 4 years ago)
- Last Synced: 2024-10-17T01:19:29.056Z (20 days 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);
----