com.spotify.apollo.AutoValue_Headers Maven / Gradle / Ivy
package com.spotify.apollo;
import com.google.common.collect.ImmutableList;
import java.util.Map.Entry;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Headers extends Headers {
private final ImmutableList> entries;
AutoValue_Headers(
ImmutableList> entries) {
if (entries == null) {
throw new NullPointerException("Null entries");
}
this.entries = entries;
}
@Override
public ImmutableList> entries() {
return entries;
}
@Override
public String toString() {
return "Headers{"
+ "entries=" + entries
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Headers) {
Headers that = (Headers) o;
return (this.entries.equals(that.entries()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= entries.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy