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

org.glassfish.json.JsonFactory Maven / Gradle / Ivy


package org.glassfish.json;

import javax.json.JsonNumber;
import javax.json.JsonString;
import java.math.BigDecimal;

//Factory class to avoid suckiness in underlying library.
public abstract class JsonFactory {
    private JsonFactory(){}

    public static JsonString jsonString(String s) {
        return new JsonStringImpl(s);
    }

    public static JsonNumber jsonNumber(BigDecimal s) {
        return JsonNumberImpl.getJsonNumber(s);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy