Just like java.util.Optional in Java 8 is (somewhat) equivalent to Scala\'s Option[T] type, is there an equivalent to Scala\'s Eithe
java.util.Optional
Option[T]
Eithe
There is no Either in the Java Standard Library. However there is an implementation of Either in FunctionalJava, along with many other nice classes.