Package net.tangly.commons.lang.functional
package net.tangly.commons.lang.functional
The package provides functional abstractions still missing in the official standard API of Java.
-
ClassDescriptionLList<T>Defines an immutable list structure as used in Lisp, Scheme, or Clojure.Define a split iterator for the immutable persistent list structure.LList.Nil<T>Pair<T,
U> Defines a typed pair as long as JDK API is not providing the abstraction.Sequence<T>TriConsumer<T,U, V> This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.TriFunction<T,U, V, R> Represents a function that accepts three arguments and produces a result.Try<T>Functional programming strives to minimize side effects, so throwing exceptions is avoided.Try.Failure<T>Try.Success<T>