
com.proofpoint.discovery.store.AutoValue_Entry Maven / Gradle / Ivy
The newest version!
package com.proofpoint.discovery.store;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.proofpoint.discovery.Service;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Entry extends Entry {
private final byte[] key;
private final List value;
private final long timestamp;
private final Long maxAgeInMs;
private final String announcer;
AutoValue_Entry(
byte[] key,
@Nullable List value,
long timestamp,
@Nullable Long maxAgeInMs,
@Nullable String announcer) {
if (key == null) {
throw new NullPointerException("Null key");
}
this.key = key;
this.value = value;
this.timestamp = timestamp;
this.maxAgeInMs = maxAgeInMs;
this.announcer = announcer;
}
@JsonProperty
@SuppressWarnings("mutable")
@Override
public byte[] getKey() {
return key;
}
@Nullable
@Override
public List getValue() {
return value;
}
@JsonProperty
@Override
public long getTimestamp() {
return timestamp;
}
@Nullable
@JsonProperty
@Override
public Long getMaxAgeInMs() {
return maxAgeInMs;
}
@Nullable
@JsonProperty
@Override
public String getAnnouncer() {
return announcer;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Entry) {
Entry that = (Entry) o;
return Arrays.equals(this.key, (that instanceof AutoValue_Entry) ? ((AutoValue_Entry) that).key : that.getKey())
&& (this.value == null ? that.getValue() == null : this.value.equals(that.getValue()))
&& this.timestamp == that.getTimestamp()
&& (this.maxAgeInMs == null ? that.getMaxAgeInMs() == null : this.maxAgeInMs.equals(that.getMaxAgeInMs()))
&& (this.announcer == null ? that.getAnnouncer() == null : this.announcer.equals(that.getAnnouncer()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= Arrays.hashCode(key);
h$ *= 1000003;
h$ ^= (value == null) ? 0 : value.hashCode();
h$ *= 1000003;
h$ ^= (int) ((timestamp >>> 32) ^ timestamp);
h$ *= 1000003;
h$ ^= (maxAgeInMs == null) ? 0 : maxAgeInMs.hashCode();
h$ *= 1000003;
h$ ^= (announcer == null) ? 0 : announcer.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy