
io.split.client.dtos.KeyImpression Maven / Gradle / Ivy
package io.split.client.dtos;
public class KeyImpression {
public String feature;
public String keyName;
public String bucketingKey;
public String treatment;
public String label;
public long time;
public Long changeNumber; // can be null if there is no changeNumber
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
KeyImpression that = (KeyImpression) o;
if (time != that.time) return false;
if (feature != null ? !feature.equals(that.feature) : that.feature != null) return false;
if (!keyName.equals(that.keyName)) return false;
if (!treatment.equals(that.treatment)) return false;
if (bucketingKey == null) {
return that.bucketingKey == null;
}
return bucketingKey.equals(that.bucketingKey);
}
@Override
public int hashCode() {
int result = feature != null ? feature.hashCode() : 0;
result = 31 * result + keyName.hashCode();
result = 31 * result + (bucketingKey == null ? 0 : bucketingKey.hashCode());
result = 31 * result + treatment.hashCode();
result = 31 * result + (int) (time ^ (time >>> 32));
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy