Matsuo Core Utils - Functional

Functional

Package pl.matsuo.core.util.function contains functional programming elements.

FunctionalUtil

Try

Try<E> is a monadic style for computations. It has two subclasses:

  • Success<E> represents successful computation - value is contained by Success.
  • Failure<E> represents failure in computing value. It does not contain any value.

Optional

Tuple<A, B>

Object containing two values.