Top Description Interfaces Classes
[default module]

Package org.springframework.util

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

Miscellaneous utility classes, such as utilities for working with strings, classes, collections, reflection, etc.

Interface Summary

Modifier and TypeInterface and Description
public interface
ErrorHandler

A strategy for handling errors.

public interface
IdGenerator

Contract for generating universally unique identifiers (UUIDs).

public interface
MultiValueMap<
the key type
K
,
the value element type
V
>

Extension of the Map interface that stores multiple values.

public interface
PathMatcher

Strategy interface for String-based path matching.

public interface
PropertiesPersister

Strategy interface for persisting java.util.Properties, allowing for pluggable parsing strategies.

public interface
RouteMatcher

Contract for matching routes to patterns.

public interface
StringValueResolver

Simple strategy interface for resolving a String value.

Class Summary

Modifier and TypeClass and Description
public class
AlternativeJdkIdGenerator

An IdGenerator that uses SecureRandom for the initial seed and Random thereafter, instead of calling UUID#randomUUID() every time as JdkIdGenerator does.

public class
AntPathMatcher

PathMatcher implementation for Ant-style path patterns.

public abstract class
Assert

Assertion utility class that assists in validating arguments.

public class
AutoPopulatingList<
the element type
E
>

Simple List wrapper class that allows for elements to be automatically populated as they are requested.

public abstract class
Base64Utils

Deprecated for removal since 6.0.5. as of Spring Framework 6.0.5 in favor of Base64; scheduled for removal in 6.2
A simple utility class for Base64 encoding and decoding.
public abstract class
ClassUtils

Miscellaneous java.lang.Class utility methods.

public abstract class
CollectionUtils

Miscellaneous collection utility methods.

public class
CommonsLogWriter

java.io.Writer adapter for a Commons Logging Log.

public class
CompositeIterator<
the element type
E
>

Composite iterator that combines multiple other iterators, as registered via add(Iterator).

public abstract class
ConcurrencyThrottleSupport

Support class for throttling concurrent access to a specific resource.

public class
ConcurrentLruCache<
the type of the key used for cache retrieval
K
,
the type of the cached values, does not allow null values
V
>

Simple LRU (Least Recently Used) cache, bounded by a specified cache capacity.

public class
ConcurrentReferenceHashMap<
the key type
K
,
the value type
V
>

A ConcurrentHashMap that uses soft or weak references for both keys and values.

public class
CustomizableThreadCreator

Simple customizable helper class for creating new Thread instances.

public class
DefaultPropertiesPersister

Default implementation of the PropertiesPersister interface.

public abstract class
DigestUtils

Miscellaneous methods for calculating digests.

public class
ExceptionTypeFilter

An InstanceFilter implementation that handles exception types.

public class
public abstract class
FileCopyUtils

Simple utility methods for file and stream copying.

public abstract class
FileSystemUtils

Utility methods for working with the file system.

public class
InstanceFilter<
the instance type
T
>

A simple instance filter that checks if a given instance match based on a collection of includes and excludes element.

public class
InvalidMimeTypeException

Exception thrown from MimeTypeUtils#parseMimeType(String) in case of encountering an invalid content type specification String.

public class
public class
LinkedCaseInsensitiveMap<
the value type
V
>

LinkedHashMap variant that stores String keys in a case-insensitive manner, for example for key-based access in a results table.

public class
LinkedMultiValueMap<
the key type
K
,
the value element type
V
>

Simple implementation of MultiValueMap that wraps a LinkedHashMap, storing multiple values in an ArrayList.

public class
MethodInvoker

Helper class that allows for specifying a method to invoke in a declarative fashion, be it static or non-static.

public class
MimeType

Represents a MIME Type, as originally defined in RFC 2046 and subsequently used in other Internet protocols including HTTP.

public abstract class
MimeTypeUtils

Miscellaneous MimeType utility methods.

public class
MultiValueMapAdapter<
the key type
K
,
the value element type
V
>

Adapts a given Map to the MultiValueMap contract.

public abstract class
NumberUtils

Miscellaneous utility methods for number conversion and parsing.

public abstract class
ObjectUtils

Miscellaneous object utility methods.

public abstract class
PatternMatchUtils

Utility methods for simple pattern matching, in particular for Spring's typical xxx*, *xxx, *xxx*, and xxx*yyy pattern styles.

public class
PropertyPlaceholderHelper

Utility class for working with Strings that have placeholder values in them.

public abstract class
ReflectionUtils

Simple utility class for working with the reflection API and handling reflection exceptions.

public class
ResizableByteArrayOutputStream

An extension of java.io.ByteArrayOutputStream that:

public abstract class
ResourceUtils

Utility methods for resolving resource locations to files in the file system.

public abstract class
SerializationUtils

Static utilities for serialization and deserialization using Java Object Serialization.

public class
SimpleIdGenerator

A simple IdGenerator that starts at 1, increments up to Long#MAX_VALUE, and then rolls over.

public class
SimpleRouteMatcher

RouteMatcher that delegates to a PathMatcher.

public class
StopWatch

Simple stop watch, allowing for timing of a number of tasks, exposing total running time and running time for each named task.

public abstract class
StreamUtils

Simple utility methods for dealing with streams.

public abstract class
StringUtils

Miscellaneous String utility methods.

public abstract class
SystemPropertyUtils

Helper class for resolving placeholders in texts.

public abstract class
TypeUtils

Utility to work with generic type parameters.

pack-priv class
UnmodifiableMultiValueMap<
the key type
K
,
the value element type
V
>

Unmodifiable wrapper for MultiValueMap.

pack-priv abstract class
UpdateMessageDigestInputStream

Extension of java.io.InputStream that allows for optimized implementations of message digesting.