# Package org.springframework.util.function

@NonNullApi @NonNullFields package org.springframework.util.function
Useful generic `java.util.function` helper classes.

Related Packages
Package
Description
org.springframework.util
Miscellaneous utility classes, such as utilities for working with strings, classes, collections, reflection, etc.
org.springframework.util.backoff
A generic back-off abstraction.
org.springframework.util.comparator
Useful generic `java.util.Comparator` implementations, such as an invertible comparator and a compound comparator.
org.springframework.util.concurrent
Useful generic `java.util.concurrent.Future` extensions.
org.springframework.util.unit
Useful unit data types.
org.springframework.util.xml
Miscellaneous utility classes for XML parsing and transformation, such as error handlers that log warnings via Commons Logging.
Class
Description
SingletonSupplier<T>
A `Supplier` decorator that caches a singleton result and makes it available from `SingletonSupplier.get()` (nullable) and `SingletonSupplier.obtain()` (null-safe).
SupplierUtils
Convenience utilities for `Supplier` handling.
ThrowingBiFunction<T,U,R>
A `BiFunction` that allows invocation of code that throws a checked exception.
ThrowingConsumer<T>
A `Consumer` that allows invocation of code that throws a checked exception.
ThrowingFunction<T,R>
A `Function` that allows invocation of code that throws a checked exception.
ThrowingSupplier<T>
A `Supplier` that allows invocation of code that throws a checked exception.