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

com.netgrif.application.engine.petrinet.domain.dataset.logic.ChangedFieldContainer.groovy Maven / Gradle / Ivy

package com.netgrif.application.engine.petrinet.domain.dataset.logic

import com.fasterxml.jackson.annotation.JsonInclude

@JsonInclude(JsonInclude.Include.NON_NULL)
class ChangedFieldContainer implements Serializable {

    private static final long serialVersionUID = 2299918326411121185L;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Map> changedFields

    ChangedFieldContainer() {
        changedFields = new HashMap<>()
    }

    void putAll(Map changed) {
        changed.each { key, field -> changedFields.put(field.id, field.attributes) }
    }

    Map> getChangedFields() {
        return changedFields
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy