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

com.gooddata.project.ProjectValidationResultGdcTimeElParam Maven / Gradle / Ivy

/*
 * Copyright (C) 2004-2017, GoodData(R) Corporation. All rights reserved.
 * This source code is licensed under the BSD-style license found in the
 * LICENSE.txt file in the root directory of this source tree.
 */
package com.gooddata.project;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.gooddata.util.GoodDataToStringBuilder;

import java.util.List;
import java.util.Objects;

@JsonTypeName("gdctime_el")
@JsonIgnoreProperties(ignoreUnknown = true)
public class ProjectValidationResultGdcTimeElParam extends ProjectValidationResultParam {

    private final List ids;

    ProjectValidationResultGdcTimeElParam(final List ids) {
        this.ids = ids;
    }

    @JsonCreator
    private static ProjectValidationResultGdcTimeElParam create(@JsonProperty("ids") List ids) {
        return new ProjectValidationResultGdcTimeElParam(ids);
    }

    public List getIds() {
        return ids;
    }

    /**
     * @return list of values
     * @deprecated for backward compatibility only. Do not use this method, it always returns null.
     */
    @Deprecated
    public List getVals() {
        return null;
    }

    @Override
    public boolean equals(final Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        final ProjectValidationResultGdcTimeElParam that = (ProjectValidationResultGdcTimeElParam) o;

        return ids != null ? ids.equals(that.ids) : that.ids == null;
    }

    @Override
    public int hashCode() {
        return ids != null ? ids.hashCode() : 0;
    }

    @Override
    public String toString() {
        return GoodDataToStringBuilder.defaultToString(this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy