All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.robertboothby.djenni.util.SimpleMapEntry Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 0.2.0
Show newest version
package com.robertboothby.djenni.util;

import java.util.Map;

public class SimpleMapEntry implements Map.Entry {

    private final K key;
    private final V value;

    public SimpleMapEntry(K key, V value) {
        this.key = key;
        this.value = value;
    }

    @Override
    public K getKey() {
        return key;
    }

    @Override
    public V getValue() {
        return value;
    }

    @Override
    public V setValue(V value) {
        throw new UnsupportedOperationException();
    }

    public static  Map.Entry mapEntry(K key, V value){
        return new SimpleMapEntry<>(key, value);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy