@Test public void jBoolean() { Json.JBoolean yes = Json.jBoolean(true); Json.JBoolean no = Json.jBoolean(false); assertEquals(yes, Json.jBoolean(true)); assertEquals(no, Json.jBoolean(false)); assertNotEquals(yes.value, no.value); assertEquals(yes.value, true); assertEquals(no.value, false); }
public static JBoolean jBoolean(boolean value) { return new JBoolean(value); }
Json { public static JBoolean jBoolean(boolean value) { return new JBoolean(value); } }
Json { public static JBoolean jBoolean(boolean value) { return new JBoolean(value); } private  Json(); }
Json { public static JBoolean jBoolean(boolean value) { return new JBoolean(value); } private  Json(); static JString jString(String value); static JBoolean jBoolean(boolean value); static JNumber jNumber(BigDecimal value); static JNumber jNumber(int n); static JNumber jNumber(double n); static JNumber jNumber(long n); static JNumber jNumber(Number n); static JNull jNull(); static JArray jEmptyArray(); static JArray jArray(Iterable<JValue> iterable); static JArray jArray(JValue first, JValue... rest); static JObject jEmptyObject(); static JObject jObject(String name, JValue value); static JObject jObject(String name, String value); static JObject jObject(String name, int value); static JObject jObject(String name, double value); static JObject jObject(String name, long value); static JObject jObject(String name, BigDecimal value); static JObject jObject(String name, Number value); static JObject jObject(String name, boolean value); @SafeVarargs static JObject jObject(Entry<String, JValue> first, Entry<String, JValue>... list); static JObject jObject(Iterable<Entry<String, JValue>> value); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3,
            String k4, JValue v4); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3,
            String k4, JValue v4,
            String k5, JValue v5); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3,
            String k4, JValue v4,
            String k5, JValue v5,
            String k6, JValue v6); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3,
            String k4, JValue v4,
            String k5, JValue v5,
            String k6, JValue v6,
            String k7, JValue v7); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3,
            String k4, JValue v4,
            String k5, JValue v5,
            String k6, JValue v6,
            String k7, JValue v7,
            String k8, JValue v8); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3,
            String k4, JValue v4,
            String k5, JValue v5,
            String k6, JValue v6,
            String k7, JValue v7,
            String k8, JValue v8,
            String k9, JValue v9); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3,
            String k4, JValue v4,
            String k5, JValue v5,
            String k6, JValue v6,
            String k7, JValue v7,
            String k8, JValue v8,
            String k9, JValue v9,
            String k10, JValue v10); static JObject jObject(Map<String, JValue> value); static Map.Entry<String, JValue> tuple(String name, JValue value); static Map.Entry<String, JValue> tuple(String name, Optional<JValue> opt); static Map.Entry<String, JValue> tuple(String name, A value, Function<A, Optional<JValue>> f); static Map.Entry<String, JValue> tuple(String name, Optional<A> value, Function<A, Optional<JValue>> f); static Map.Entry<String, JValue> tuple(String name, String value); static Map.Entry<String, JValue> tuple(String name, int value); static Map.Entry<String, JValue> tuple(String name, double value); static Map.Entry<String, JValue> tuple(String name, long value); static Map.Entry<String, JValue> tuple(String name, BigDecimal value); static Map.Entry<String, JValue> tuple(String name, Number value); static Map.Entry<String, JValue> tuple(String name, boolean value); static Map.Entry<String, JValue> nullableTuple(String name, String value); static Map.Entry<String, JValue> nullableTuple(String name, BigDecimal value); static Map.Entry<String, JValue> nullableTuple(String name, Number value); static Map.Entry<String, JValue> nullableTuple(String name, JValue value); }
Json { public static JBoolean jBoolean(boolean value) { return new JBoolean(value); } private  Json(); static JString jString(String value); static JBoolean jBoolean(boolean value); static JNumber jNumber(BigDecimal value); static JNumber jNumber(int n); static JNumber jNumber(double n); static JNumber jNumber(long n); static JNumber jNumber(Number n); static JNull jNull(); static JArray jEmptyArray(); static JArray jArray(Iterable<JValue> iterable); static JArray jArray(JValue first, JValue... rest); static JObject jEmptyObject(); static JObject jObject(String name, JValue value); static JObject jObject(String name, String value); static JObject jObject(String name, int value); static JObject jObject(String name, double value); static JObject jObject(String name, long value); static JObject jObject(String name, BigDecimal value); static JObject jObject(String name, Number value); static JObject jObject(String name, boolean value); @SafeVarargs static JObject jObject(Entry<String, JValue> first, Entry<String, JValue>... list); static JObject jObject(Iterable<Entry<String, JValue>> value); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3,
            String k4, JValue v4); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3,
            String k4, JValue v4,
            String k5, JValue v5); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3,
            String k4, JValue v4,
            String k5, JValue v5,
            String k6, JValue v6); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3,
            String k4, JValue v4,
            String k5, JValue v5,
            String k6, JValue v6,
            String k7, JValue v7); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3,
            String k4, JValue v4,
            String k5, JValue v5,
            String k6, JValue v6,
            String k7, JValue v7,
            String k8, JValue v8); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3,
            String k4, JValue v4,
            String k5, JValue v5,
            String k6, JValue v6,
            String k7, JValue v7,
            String k8, JValue v8,
            String k9, JValue v9); static JObject jObject(
            String k1, JValue v1,
            String k2, JValue v2,
            String k3, JValue v3,
            String k4, JValue v4,
            String k5, JValue v5,
            String k6, JValue v6,
            String k7, JValue v7,
            String k8, JValue v8,
            String k9, JValue v9,
            String k10, JValue v10); static JObject jObject(Map<String, JValue> value); static Map.Entry<String, JValue> tuple(String name, JValue value); static Map.Entry<String, JValue> tuple(String name, Optional<JValue> opt); static Map.Entry<String, JValue> tuple(String name, A value, Function<A, Optional<JValue>> f); static Map.Entry<String, JValue> tuple(String name, Optional<A> value, Function<A, Optional<JValue>> f); static Map.Entry<String, JValue> tuple(String name, String value); static Map.Entry<String, JValue> tuple(String name, int value); static Map.Entry<String, JValue> tuple(String name, double value); static Map.Entry<String, JValue> tuple(String name, long value); static Map.Entry<String, JValue> tuple(String name, BigDecimal value); static Map.Entry<String, JValue> tuple(String name, Number value); static Map.Entry<String, JValue> tuple(String name, boolean value); static Map.Entry<String, JValue> nullableTuple(String name, String value); static Map.Entry<String, JValue> nullableTuple(String name, BigDecimal value); static Map.Entry<String, JValue> nullableTuple(String name, Number value); static Map.Entry<String, JValue> nullableTuple(String name, JValue value);  }