eu.lucaventuri.common.NameValuePair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fibry Show documentation
Show all versions of fibry Show documentation
The first Java Actor System supporting fibers from Project Loom
package eu.lucaventuri.common;
import java.util.Objects;
public class NameValuePair {
public final K key;
public final V value;
public NameValuePair(K key, V value) {
this.key = key;
this.value = value;
assert key != null;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
NameValuePair, ?> that = (NameValuePair, ?>) o;
return Objects.equals(key, that.key) && Objects.equals(value, that.value);
}
@Override
public int hashCode() {
return Objects.hash(key, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy