001
002package com.commercetools.history.models.common;
003
004import java.time.*;
005import java.util.*;
006
007import com.fasterxml.jackson.annotation.JsonCreator;
008import com.fasterxml.jackson.annotation.JsonProperty;
009import com.fasterxml.jackson.databind.annotation.*;
010
011import io.vrap.rmf.base.client.ModelBase;
012import io.vrap.rmf.base.client.utils.Generated;
013
014import org.apache.commons.lang3.builder.EqualsBuilder;
015import org.apache.commons.lang3.builder.HashCodeBuilder;
016
017/**
018 * SearchKeywords
019 */
020@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
021public class SearchKeywordsImpl implements SearchKeywords, ModelBase {
022
023    private Map<String, java.util.List<com.commercetools.history.models.common.SearchKeyword>> values;
024
025    /**
026     * create instance with all properties
027     */
028    @JsonCreator
029    SearchKeywordsImpl(
030            @JsonProperty("values") final Map<String, java.util.List<com.commercetools.history.models.common.SearchKeyword>> values) {
031        this.values = values;
032    }
033
034    /**
035     * create empty instance
036     */
037    public SearchKeywordsImpl() {
038    }
039
040    /**
041     *
042     */
043
044    public Map<String, java.util.List<com.commercetools.history.models.common.SearchKeyword>> values() {
045        return values;
046    }
047
048    public void setValue(String key, java.util.List<com.commercetools.history.models.common.SearchKeyword> value) {
049        if (values == null) {
050            values = new HashMap<>();
051        }
052        values.put(key, value);
053    }
054
055    @Override
056    public boolean equals(Object o) {
057        if (this == o)
058            return true;
059
060        if (o == null || getClass() != o.getClass())
061            return false;
062
063        SearchKeywordsImpl that = (SearchKeywordsImpl) o;
064
065        return new EqualsBuilder().append(values, that.values).append(values, that.values).isEquals();
066    }
067
068    @Override
069    public int hashCode() {
070        return new HashCodeBuilder(17, 37).append(values).toHashCode();
071    }
072
073}