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

io.keen.client.java.result.DoubleResult Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
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