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
IdGeneratorthat usesSecureRandomfor the initial seed andRandomthereafter, instead of callingUUID.randomUUID()every time asJdkIdGeneratordoes.PathMatcherimplementation for Ant-style path patterns.Tests whether a string matches against a pattern via aPattern.The defaultComparatorimplementation returned byAntPathMatcher.getPatternComparator(String).Assertion utility class that assists in validating arguments.SimpleListwrapper 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.Miscellaneousjava.lang.Classutility methods.Miscellaneous collection utility methods.java.io.Writeradapter 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.Entrycontained in the map.Various reference types supported by this map.The types of restructuring that can be performed.Simple customizable helper class for creating newThreadinstances.Default implementation of thePropertiesPersisterinterface.Miscellaneous methods for calculating digests.A strategy for handling errors.AnInstanceFilterimplementation 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.AnIdGeneratorthat callsUUID.randomUUID().LinkedHashMapvariant that stores String keys in a case-insensitive manner, for example for key-based access in a results table.LinkedMultiValueMap<K,V> Simple implementation ofMultiValueMapthat 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 replacementMiscellaneousMimeTypeutility methods.MultiValueMap<K,V> Extension of theMapinterface that stores multiple values.MultiValueMapAdapter<K,V> Adapts a givenMapto theMultiValueMapcontract.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 typicalxxx*,*xxx,*xxx*, andxxx*yyypattern styles.Thrown when the resolution of placeholder failed.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 ofByteArrayOutputStreamthat: 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 simpleIdGeneratorthat starts at 1, increments up toLong.MAX_VALUE, and then rolls over.RouteMatcherthat 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.MiscellaneousStringutility methods.Simple strategy interface for resolving a String value.Helper class for resolving placeholders in texts.Utility to work with generic type parameters.