Package javax.json

Examples of javax.json.JsonNumber.doubleValue()


    simulation.setResolution(resolution != null ? resolution.longValue()
        : 1000L);

    JsonNumber temperature = simulationObject.getJsonNumber("temperature");
    if (temperature != null) {
      simulation.getContext().setTemperature(temperature.doubleValue());
    }
    JsonNumber brightness = simulationObject.getJsonNumber("brightness");
    if (brightness != null) {
      simulation.getContext().setBrightness(brightness.doubleValue());
    }
View Full Code Here


    if (temperature != null) {
      simulation.getContext().setTemperature(temperature.doubleValue());
    }
    JsonNumber brightness = simulationObject.getJsonNumber("brightness");
    if (brightness != null) {
      simulation.getContext().setBrightness(brightness.doubleValue());
    }

    JsonArray colorArray = simulationObject.getJsonArray("lightColor");
    if (colorArray != null && colorArray.size() == 3) {
      simulation.getContext().setLightColor(
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.