
com.redislabs.redistimeseries.Value Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jredistimeseries Show documentation
Show all versions of jredistimeseries Show documentation
Java Client for RedisTimeSeries.
package com.redislabs.redistimeseries;
public class Value {
private final long time;
private final double val;
public Value(long time, double value) {
this.time = time;
this.val = value;
}
public long getTime() {
return time;
}
public double getValue() {
return val;
}
@Override
public boolean equals(Object o) {
if(!(o instanceof Value))
return false;
Value other = (Value)o;
return other.time == this.time && other.val == this.val;
}
@Override
public int hashCode() {
return Long.hashCode(time ) ^ Double.hashCode(val);
}
@Override
public String toString() {
return "(" + this.time + ":" + this.val + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy