Enum Class FunctionsHelper

java.lang.Object
java.lang.Enum<FunctionsHelper>
org.smallibs.util.FunctionsHelper
All Implemented Interfaces:
Serializable, Comparable<FunctionsHelper>, java.lang.constant.Constable

public enum FunctionsHelper extends Enum<FunctionsHelper>
  • Method Details

    • values

      public static FunctionsHelper[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FunctionsHelper valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • compose

      public static <A, B, C> java.util.function.Function<A,C> compose(java.util.function.Function<B,C> f, java.util.function.Function<A,B> g)
    • id

      public static <A> java.util.function.Function<A,A> id()
    • fromFunction

      public static <T, R> FunctionWithError<T,R> fromFunction(java.util.function.Function<T,R> function)
    • toFunction

      public static <T, R> java.util.function.Function<T,Try<R>> toFunction(FunctionWithError<T,R> function)