com.laamella.parameter_source.InMemoryObjectParameterSource Maven / Gradle / Ivy
package com.laamella.parameter_source;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import static java.util.Objects.requireNonNull;
/**
* This source has no external storage.
* It only contains key-value pairs that have been put in using the "put" method.
*/
public class InMemoryObjectParameterSource implements ObjectParameterSource {
private final Map storage = new HashMap<>();
@Override
public Optional