All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.split.client.dtos.Event Maven / Gradle / Ivy

There is a newer version: 4.13.0
Show newest version
package io.split.client.dtos;

import com.google.common.base.Objects;

import java.util.Map;

public class Event {

    public static int MAX_PROPERTIES_LENGTH_BYTES = 32 * 1024;

    public String eventTypeId;
    public String trafficTypeName;
    public String key;
    public double value;
    public Map properties;
    public long timestamp;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Event event = (Event) o;
        return Double.compare(event.value, value) == 0 &&
                timestamp == event.timestamp &&
                Objects.equal(eventTypeId, event.eventTypeId) &&
                Objects.equal(trafficTypeName, event.trafficTypeName) &&
                Objects.equal(key, event.key);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(eventTypeId, trafficTypeName, key, value, timestamp);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy