Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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);
----