
io.github.mike10004.debianmaven.NameValuePair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of debian-maven-plugin Show documentation
Show all versions of debian-maven-plugin Show documentation
This plugin helps building DEB packages from Maven projects.
The packages can be used in DEB-based operating systems such
as Debian and Ubuntu. The plugin uses external Debian tools
to do the actual packaging.
The newest version!
package io.github.mike10004.debianmaven;
import java.util.Objects;
import java.util.StringJoiner;
public class NameValuePair {
private String name;
private String value;
public NameValuePair() {
}
public NameValuePair(String name, String value) {
this.name = name;
this.value = value;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof NameValuePair)) return false;
NameValuePair that = (NameValuePair) o;
return Objects.equals(name, that.name) &&
Objects.equals(value, that.value);
}
@Override
public int hashCode() {
return Objects.hash(name, value);
}
@Override
public String toString() {
return new StringJoiner(", ", NameValuePair.class.getSimpleName() + "(", ")")
.add((name == null ? "null" : "'" + name + "'"))
.add((value == null ? "null" : "'" + value + "'"))
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy