Top Description Interfaces Classes
[default module]

Package org.springframework.util.function

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Useful generic java.util.function helper classes.

Interface Summary

Modifier and TypeInterface and Description
public interface
ThrowingBiFunction<
the type of the first argument to the function
T
,
the type of the second argument to the function
U
,
the type of the result of the function
R
>

A BiFunction that allows invocation of code that throws a checked exception.

public interface
ThrowingConsumer<
the type of the input to the operation
T
>

A Consumer that allows invocation of code that throws a checked exception.

public interface
ThrowingFunction<
the type of the input to the function
T
,
the type of the result of the function
R
>

A Function that allows invocation of code that throws a checked exception.

public interface
ThrowingSupplier<
the type of results supplied by this supplier
T
>

A Supplier that allows invocation of code that throws a checked exception.

Class Summary

Modifier and TypeClass and Description
public class
SingletonSupplier<
the type of results supplied by this supplier
T
>

A java.util.function.Supplier decorator that caches a singleton result and makes it available from get() (nullable) and obtain() (null-safe).

public abstract class
SupplierUtils

Convenience utilities for java.util.function.Supplier handling.