Package org.apache.commons.lang3.function

# Class Functions

java.lang.Object
org.apache.commons.lang3.function.Functions

public final class Functions extends Object
Factory for `Function`.

Since:
  3.14.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static <T, R> Function<T,R>`
  `function(Function<T,R> function)`
  Starts a fluent chain like `function(foo::bar).andThen(...).andThen(...).apply(...);`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### function

    public static <T, R> Function<T,R> function(Function<T,R> function)
    Starts a fluent chain like `function(foo::bar).andThen(...).andThen(...).apply(...);`
    Type Parameters:
      `T` - Input type.
      `R` - Return type.
    Parameters:
      `function` - the argument to return.
    Returns:
      the argument