| Modifier and Type | Field and Description |
|---|---|
| public static final long |
| Modifier and Type | Method and Description |
|---|---|
| public default < return type of after V> Function1 | Returns: a function composed of this and afterthe function applied after this after)Overrides default java. Returns a composed function that first applies this Function1 to the given argument and then applies
Function |
| public R | Returns: the result of function applicationargument 1 t1)Redeclares java. Applies this function to one argument and returns the result. |
| public default int | |
| public default < argument type of before V> Function1 | Returns: a function composed of before and thisthe function applied before this before)Overrides default java. Returns a composed function that first applies the Function |
| public static < generic parameter type 1 of the resulting function T1, the result type R> Function1 | Returns: a function always returning the given valuethe value to be returned value)Returns a function that always returns the constant value that you give in parameter. |
| public default Function1 | |
| public static < argument type (and return type) of the identity function T> Function1 | Returns: the identity Function1Hides java. Returns the identity Function1, i.e. the function that returns its input. |
| public default boolean | Returns: true, if this function is memoizing, false otherwiseChecks if this function is memoizing (= caching) computed values. |
| public static < 1st argument T1, return type R> Function1 | Returns: a function that applies arguments to the givenpartialFunction and returns Some(result)
if the function is defined for the given arguments, and None otherwise.a function that is not defined for all values of the domain (e.g. by throwing) partialFunction)Lifts the given |
| public static < 1st argument T1, return type R> Function1 | Returns: a function that applies arguments to the givenpartialFunction and returns Success(result)
if the function is defined for the given arguments, and Failure(throwable) otherwise.a function that is not defined for all values of the domain (e.g. by throwing) partialFunction)Lifts the given |
| public default Function1 | Returns: a memoizing function equivalent to this.Returns a memoizing version of this function, which computes the return value for given arguments only one time. |
| public static < 1st argument T1, return type R> Function1 | |
| public static < 1st argument T1, return type R> Function1 | |
| public default PartialFunction | Returns: a newPartialFunction that has the same behavior like this function but is defined only for those elements that make it through the given Predicatea predicate that states if an element is in the domain of the returned isDefinedAt)PartialFunction.Converts this |
| public default Function1 | Returns: a reversed function equivalent to this.Returns a reversed version of this function. |
| public default Function1 |
| serialVersionUID | back to summary |
|---|---|
| public static final long serialVersionUID The serial version uid. | |
| andThen | back to summary |
|---|---|
| public default <V> Function1 Overrides default java. Returns a composed function that first applies this Function1 to the given argument and then applies
Function
| |
| apply | back to summary |
|---|---|
| public R apply(T1 t1) Redeclares java. Applies this function to one argument and returns the result.
| |
| arity | back to summary |
|---|---|
| public default int arity() Returns the number of function arguments.
| |
| compose | back to summary |
|---|---|
| public default <V> Function1 Overrides default java. Returns a composed function that first applies the Function
| |
| constant | back to summary |
|---|---|
| public static <T1, R> Function1 Returns a function that always returns the constant value that you give in parameter.
| |
| curried | back to summary |
|---|---|
| public default Function1 Returns a curried version of this function.
| |
| identity | back to summary |
|---|---|
| public static <T> Function1 Hides java. Returns the identity Function1, i.e. the function that returns its input.
| |
| isMemoized | back to summary |
|---|---|
| public default boolean isMemoized() Checks if this function is memoizing (= caching) computed values.
| |
| lift | back to summary |
|---|---|
| public static <T1, R> Function1 Lifts the given
| |
| liftTry | back to summary |
|---|---|
| public static <T1, R> Function1 Lifts the given
| |
| memoized | back to summary |
|---|---|
| public default Function1 Returns a memoizing version of this function, which computes the return value for given arguments only one time. On subsequent calls given the same arguments the memoized value is returned.
Please note that memoizing functions do not permit
| |
| narrow | back to summary |
|---|---|
| public static <T1, R> Function1 Narrows the given
| |
| of | back to summary |
|---|---|
| public static <T1, R> Function1 Creates a Caution Reflection loses type information of lambda references.
| |
| partial | back to summary |
|---|---|
| public default PartialFunction Converts this
| |
| reversed | back to summary |
|---|---|
| public default Function1 Returns a reversed version of this function. This may be useful in a recursive context.
| |
| tupled | back to summary |
|---|---|
| public default Function1 Returns a tupled version of this function. | |