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

com.kenshoo.pl.entity.FieldsValueMapImpl Maven / Gradle / Ivy

Go to download

A Java persistence layer based on JOOQ for high performance and business flow support.

There is a newer version: 0.1.121-jooq-3.16.3
Show newest version
package com.kenshoo.pl.entity;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by yuvalr on 2/14/16.
 */
public class FieldsValueMapImpl> implements FieldsValueMap {

    private final Map, Object> values = new HashMap<>();

    public  void set(EntityField field, T value) {
        values.put(field, value);
    }

    @Override
    public  boolean containsField(EntityField field) {
        return values.containsKey(field);
    }

    @Override
    public  T get(EntityField field) {
        //noinspection unchecked,SuspiciousMethodCalls
        return (T) values.get(field);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy