Package org.springframework.util
@NonNullApi
@NonNullFields
package org.springframework.util
Miscellaneous utility classes, such as utilities for working with strings,
classes, collections, reflection, etc.
-
ClassDescriptionAn
IdGenerator
that usesSecureRandom
for the initial seed andRandom
thereafter, instead of callingUUID.randomUUID()
every time asJdkIdGenerator
does.PathMatcher
implementation for Ant-style path patterns.Tests whether a string matches against a pattern via aPattern
.The defaultComparator
implementation returned byAntPathMatcher.getPatternComparator(String)
.Assertion utility class that assists in validating arguments.SimpleList
wrapper class that allows for elements to be automatically populated as they are requested.Factory interface for creating elements for an index-based access data structure such as aList
.Exception to be thrown from ElementFactory.Deprecated, for removal: This API element is subject to removal in a future version.Miscellaneousjava.lang.Class
utility methods.Miscellaneous collection utility methods.java.io.Writer
adapter for a Commons LoggingLog
.Composite iterator that combines multiple other iterators, as registered viaCompositeIterator.add(Iterator)
.Support class for throttling concurrent access to a specific resource.ConcurrentLruCache<K,V> Simple LRU (Least Recently Used) cache, bounded by a specified cache capacity.A single map entry.A reference to anConcurrentReferenceHashMap.Entry
contained in the map.Various reference types supported by this map.The types of restructuring that can be performed.Simple customizable helper class for creating newThread
instances.Default implementation of thePropertiesPersister
interface.Miscellaneous methods for calculating digests.A strategy for handling errors.AnInstanceFilter
implementation that handles exception types.A speedy alternative toByteArrayOutputStream
.Simple utility methods for file and stream copying.Utility methods for working with the file system.Contract for generating universally unique identifiers (UUIDs
).A simple instance filter that checks if a given instance match based on a collection of includes and excludes element.Exception thrown fromMimeTypeUtils.parseMimeType(String)
in case of encountering an invalid content type specification String.AnIdGenerator
that callsUUID.randomUUID()
.LinkedHashMap
variant that stores String keys in a case-insensitive manner, for example for key-based access in a results table.LinkedMultiValueMap<K,V> Simple implementation ofMultiValueMap
that wraps aLinkedHashMap
, storing multiple values in anArrayList
.Helper class that allows for specifying a method to invoke in a declarative fashion, be it static or non-static.Represents a MIME Type, as originally defined in RFC 2046 and subsequently used in other Internet protocols including HTTP.MimeType.SpecificityComparator<T extends MimeType>Deprecated, for removal: This API element is subject to removal in a future version.As of 6.0, with no direct replacementMiscellaneousMimeType
utility methods.MultiValueMap<K,V> Extension of theMap
interface that stores multiple values.MultiValueMapAdapter<K,V> Adapts a givenMap
to theMultiValueMap
contract.Miscellaneous utility methods for number conversion and parsing.Miscellaneous object utility methods.Strategy interface forString
-based path matching.Utility methods for simple pattern matching, in particular for Spring's typical "xxx*", "*xxx" and "*xxx*" pattern styles.Strategy interface for persistingjava.util.Properties
, allowing for pluggable parsing strategies.Utility class for working with Strings that have placeholder values in them.Strategy interface used to resolve replacement values for placeholders contained in Strings.Simple utility class for working with the reflection API and handling reflection exceptions.Callback interface invoked on each field in the hierarchy.Callback optionally used to filter fields to be operated on by a field callback.Action to take on each method.Callback optionally used to filter methods to be operated on by a method callback.An extension ofByteArrayOutputStream
that: has publicResizableByteArrayOutputStream.grow(int)
andResizableByteArrayOutputStream.resize(int)
methods to get more control over the size of the internal buffer has a higher initial capacity (256) by defaultUtility methods for resolving resource locations to files in the file system.Contract for matching routes to patterns.A parsed representation of a route.Static utilities for serialization and deserialization using Java Object Serialization.A simpleIdGenerator
that starts at 1, increments up toLong.MAX_VALUE
, and then rolls over.RouteMatcher
that delegates to aPathMatcher
.Simple stop watch, allowing for timing of a number of tasks, exposing total running time and running time for each named task.Nested class to hold data about one task executed within theStopWatch
.Simple utility methods for dealing with streams.MiscellaneousString
utility methods.Simple strategy interface for resolving a String value.Helper class for resolving placeholders in texts.Utility to work with generic type parameters.
Base64
; scheduled for removal in 6.2