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

io.katharsis.request.dto.Attributes Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
package io.katharsis.request.dto;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;

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

public class Attributes {
    private final Map attributesMap = new HashMap<>();

    @JsonAnyGetter
    public Map getAttributesMap() {
        return this.attributesMap;
    }

    @JsonAnySetter
    public void addAttribute(String name, Object value) {
        this.attributesMap.put(name, value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy