berlin.yuna.configmetadata.model.Hints Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of config-metadata-generator Show documentation
Show all versions of config-metadata-generator Show documentation
Manually way/library to generate config metadata for spring boot
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 +
'}';
}
}