Module dev.metaschema.core
Package dev.metaschema.core.util
package dev.metaschema.core.util
Provides utility classes for common operations throughout the Metaschema
framework.
This package contains helper classes for working with collections, objects, strings, URIs, and other common Java types. These utilities provide null-safe operations, type conversions, and enhanced functionality beyond standard Java libraries.
Key utility classes:
ObjectUtils- Null-safety assertions and object validation (notNull,requireNonNull)CollectionUtil- Collection operations including unmodifiable wrappers, stream conversions, and null-safe accessorsCustomCollectors- Custom stream collectorsAutoCloser- Adapter for making resourcesAutoCloseableStringUtils- String manipulation and validationUriUtils- URI resolution and manipulationDeleteOnShutdown- Temporary file cleanupIVersionInfo- Version information interface
These utilities are primarily designed for internal framework use but may also be useful for applications built on the Metaschema framework.
-
ClassDescriptionAutoCloser<T,
E extends Exception> Wraps a resource to make itAutoCloseable.AutoCloser.Closer<T,E extends Exception> A callback interface representing a close operation.Provides a collection of utilities for handling Java collections and iterators.Provides a variety of collector and other stream utilities.A handler that supports resolving duplicate keys while inserting values into a map.Used to perform cleanup on shutdown.Provides a means for throwing important checked exceptions over non-checked methods, e.g. lambda invocations.A runtime exception that wraps a checked exception, allowing it to be thrown from contexts that do not allow checked exceptions (such as lambda expressions).Provides version information for a runtime dependency or application.A collection of utilities for checking and managing Java objects.Provides a collection of utilities for checking and managing strings.A collection of methods for manipulating uniform resource identifiers (URIs), providing functionality for URI resolution, relativization, and path manipulation.