io.keen.client.java.result.DoubleResult Maven / Gradle / Ivy
package io.keen.client.java.result;
/**
* DoubleResult is for if the QueryResult object is of type Double.
*
* @author claireyoung
* @since 1.0.0, 07/06/15
*/
public class DoubleResult extends QueryResult {
private final double result;
/**
* @param result the result.
*/
public DoubleResult(double result) {
this.result = result;
}
/**
* @return {@code true}
*/
@Override
public boolean isDouble() {
return true;
}
/**
* @return double value
*/
@Override
public double doubleValue() {
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy