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

com.devsmart.ubjson.UBFloat64 Maven / Gradle / Ivy

package com.devsmart.ubjson;


public final class UBFloat64 extends UBValue {

    private double mValue;

    UBFloat64(double value) {
        mValue = value;
    }

    @Override
    public Type getType() {
        return Type.Float64;
    }

    public float getFloat() {
        return (float) mValue;
    }

    public double getDouble() {
        return mValue;
    }

    @Override
    public String toString() {
        return Double.toString(getDouble());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy