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

com.redis.lettucemod.timeseries.RangeResult Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
package com.redis.lettucemod.timeseries;

import java.util.List;
import java.util.Map;
import java.util.Objects;

public class RangeResult {

	private K key;
	private Map labels;
	private List samples;

	public K getKey() {
		return key;
	}

	public void setKey(K key) {
		this.key = key;
	}

	public Map getLabels() {
		return labels;
	}

	public void setLabels(Map labels) {
		this.labels = labels;
	}

	public List getSamples() {
		return samples;
	}

	public void setSamples(List samples) {
		this.samples = samples;
	}

	@Override
	public int hashCode() {
		return Objects.hash(key, labels, samples);
	}

	@SuppressWarnings("unchecked")
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RangeResult other = (RangeResult) obj;
		return Objects.equals(key, other.key) && Objects.equals(labels, other.labels)
				&& Objects.equals(samples, other.samples);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy