com.robertboothby.djenni.util.SimpleMapSupplierBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
This module holds the core components of the Djenni data generator framework. By itself it provides most of the
components to create an efficient end to end data generation framework for a specific domain. It contains the
core
SupplierBuilder interfaces, implementations for the core Java data types and useful test components.
It is intended to be used in conjunction with the source-generator module that will speed up delivery of domain
specific data generation and also with common domain modules (TBD) that deliver standard generators for common
frameworks such as JAXB.
package com.robertboothby.djenni.util;
import com.robertboothby.djenni.SupplierBuilder;
import com.robertboothby.djenni.core.StreamableSupplier;
import java.util.Map;
import java.util.function.Consumer;
import java.util.function.Supplier;
import static com.robertboothby.djenni.core.SupplierHelper.fix;
import static java.util.stream.Collectors.toMap;
/**
* This SupplierBuilder creates a supplier of {@link java.util.Map}s. This can be used standalone or with the
* {@link }MapSupplierHelper} and {@link MapTypes} to create a specific Map implementation.
* @param The type of the keys,
* @param The type of the values.
*/
public class SimpleMapSupplierBuilder implements SupplierBuilder