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

berlin.yuna.configmetadata.model.Hints Maven / Gradle / Ivy

There is a newer version: 0.6.163
Show newest version
package berlin.yuna.configmetadata.model;

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

@SuppressWarnings({"UnusedReturnValue", "unused"})
public class Hints {

    private String name;
    private List values = new ArrayList<>();

    public String name() {
        return name;
    }

    public Hints name(final String name) {
        this.name = name;
        return this;
    }

    public List values() {
        return values;
    }

    public Hints values(final List values) {
        this.values = values;
        return this;
    }

    public Values newValues() {
        final Values result = new Values();
        values().add(result);
        return result;
    }

    @Override
    public boolean equals(final Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        final Hints hints = (Hints) o;
        return Objects.equals(name, hints.name) &&
                Objects.equals(values, hints.values);
    }

    @Override
    public int hashCode() {

        return Objects.hash(name, values);
    }

    @Override
    public String toString() {
        return "Hints{" +
                "name='" + name + '\'' +
                ", values=" + values +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy