com.kenshoo.pl.entity.FieldsValueMapImpl Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of persistence-layer Show documentation
                Show all versions of persistence-layer Show documentation
A Java persistence layer based on JOOQ for high performance and business flow support.
                
             The 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 - 2025 Weber Informatics LLC | Privacy Policy