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

com.gooddata.md.IdentifierToUri Maven / Gradle / Ivy

There is a newer version: 3.12.0+api3
Show newest version
package com.gooddata.md;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Collection;

import static com.gooddata.util.Validate.notNull;

/**
 * Strucuture with list of symbolic names to be expanded by related uri.
 */
class IdentifierToUri {

    private final Collection identifierToUri;

    @JsonCreator
    IdentifierToUri(@JsonProperty("identifierToUri") final Collection identifierToUri) {
        notNull(identifierToUri, "identifierToUri");
        this.identifierToUri = identifierToUri;
    }

    public Collection getIdentifierToUri() {
        return identifierToUri;
    }

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

        IdentifierToUri that = (IdentifierToUri) o;

        if (!identifierToUri.equals(that.identifierToUri)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return identifierToUri.hashCode();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy