
com.laamella.parameter_source.ParameterSource Maven / Gradle / Ivy
package com.laamella.parameter_source;
import java.util.Optional;
import static com.laamella.parameter_source.ParameterSourceException.missingKeyException;
import static java.util.Objects.requireNonNull;
/**
* Abstract interface to a parameter (simple key-value) store, adds checking of required parameters, a tight interface,
* logging, and easy testing.
*/
public interface ParameterSource {
/**
* Retrieves a String from this source by key.
*/
Optional getOptionalString(String key);
/**
* Retrieves an optional Integer from this source by key.
*/
Optional getOptionalInteger(String key);
/**
* Retrieves an optional Object from this source by key.
*/
Optional
© 2015 - 2025 Weber Informatics LLC | Privacy Policy