Uses of Interface
org.apache.juneau.commons.function.Snippet
Packages that use Snippet
Package
Description
Assertions API
Language utilities including value wrappers, version management, string formatting,
state enums, and other common language constructs.
Thread-safe system property access with support for global and per-thread overrides,
making it useful for unit tests and configuration management.
Common internal utilities.
-
Uses of Snippet in org.apache.juneau.assertions
Methods in org.apache.juneau.assertions with parameters of type SnippetModifier and TypeMethodDescriptionstatic final ThrowableAssertion<Throwable>Assertions.assertThrown(Snippet snippet) Executes an arbitrary snippet of code and captures anything thrown from it as a Throwable assertion. -
Uses of Snippet in org.apache.juneau.commons.lang
Methods in org.apache.juneau.commons.lang with parameters of type Snippet -
Uses of Snippet in org.apache.juneau.commons.settings
Methods in org.apache.juneau.commons.settings with parameters of type SnippetModifier and TypeMethodDescriptionstatic FunctionalStoreFunctionalStore.of(Function<String, String> reader, BiConsumer<String, String> writer, Consumer<String> unsetter, Snippet clearer) Creates a writable functional store from four functions.Constructors in org.apache.juneau.commons.settings with parameters of type SnippetModifierConstructorDescriptionFunctionalStore(Function<String, String> reader, BiConsumer<String, String> writer, Consumer<String> unsetter, Snippet clearer) Creates a new writable functional store. -
Uses of Snippet in org.apache.juneau.commons.utils
Methods in org.apache.juneau.commons.utils with parameters of type SnippetModifier and TypeMethodDescriptionstatic voidRuns a snippet of code and silently ignores any exceptions.static voidRuns a snippet of code and encapsulates any throwable inside aRuntimeException.static voidUtils.safe(Snippet snippet, Function<Throwable, RuntimeException> exceptionMapper) Runs a snippet of code with a custom exception mapper.