public static JsonArrayBuilder createArrayBuilder() { return provider.createArrayBuilder(); }
/** * Creates a JSON array builder * * @return a JSON array builder */ public static JsonArrayBuilder createArrayBuilder() { return JsonProvider.provider().createArrayBuilder(); }
/** * Creates a JSON array builder, initialized with the specified array * * @param array the initial array in the builder * @return a JSON array builder * * @since 1.1 */ public static JsonArrayBuilder createArrayBuilder(JsonArray array) { return JsonProvider.provider().createArrayBuilder(array); }
/** * Creates a JSON array builder, initialized with the content of specified {@code collection}. * If the @{code collection} contains {@link Optional}s then resulting JSON array builder * contains the value from the {@code collection} only if the {@link Optional} is not empty. * * @param collection the initial data for the builder * @return a JSON array builder * @exception IllegalArgumentException if the value from the {@code collection} cannot be converted * to the corresponding {@link JsonValue} * * @since 1.1 */ public static JsonArrayBuilder createArrayBuilder(Collection<?> collection) { return JsonProvider.provider().createArrayBuilder(collection); }
@Override public JsonArrayBuilder createArrayBuilder() { return DELEGATE.createArrayBuilder(); }
@Override public JsonArrayBuilder createArrayBuilder(JsonArray initialData) { return DELEGATE.createArrayBuilder(initialData); }
@Override public JsonArrayBuilder createArrayBuilder(Collection<?> initialData) { return DELEGATE.createArrayBuilder(initialData); }
/** * Creates a JSON array builder, initialized with the specified array * * @param array the initial array in the builder * @return a JSON array builder * * @since 1.1 */ public static JsonArrayBuilder createArrayBuilder(JsonArray array) { return JsonProvider.provider().createArrayBuilder(array); }
/** * Creates a JSON array builder * * @return a JSON array builder */ public static JsonArrayBuilder createArrayBuilder() { return JsonProvider.provider().createArrayBuilder(); }
/** * Creates a JSON array builder, initialized with an initial content * * @param initialData the initial array in the builder * @return a JSON array builder * @since 1.1 */ public static JsonArrayBuilder createArrayBuilder(Collection<?> initialData) { return JsonProvider.provider().createArrayBuilder(initialData); }
/** * Creates a JSON array builder * * @return a JSON array builder */ public static JsonArrayBuilder createArrayBuilder() { return JsonProvider.provider().createArrayBuilder(); }
/** * Creates a JSON array builder * * @return a JSON array builder */ public static JsonArrayBuilder createArrayBuilder() { return JsonProvider.provider().createArrayBuilder(); }
/** * Creates a JSON array builder, initialized with the specified array * * @param array the initial array in the builder * @return a JSON array builder * * @since 1.1 */ public static JsonArrayBuilder createArrayBuilder(JsonArray array) { return JsonProvider.provider().createArrayBuilder(array); }
/** * Creates a JSON array builder * * @return a JSON array builder */ public static JsonArrayBuilder createArrayBuilder() { return JsonProvider.provider().createArrayBuilder(); }
/** * Creates a JSON array builder, initialized with the specified array * * @param array the initial array in the builder * @return a JSON array builder * * @since 1.1 */ public static JsonArrayBuilder createArrayBuilder(JsonArray array) { return JsonProvider.provider().createArrayBuilder(array); }
/** * Creates a JSON array builder * * @return a JSON array builder */ public static JsonArrayBuilder createArrayBuilder() { return JsonProvider.provider().createArrayBuilder(); }
/** * Creates a JSON array builder, initialized with an initial content * taken from a JsonArray * * @param initialData the initial array in the builder * @return a JSON array builder * @since 1.1 */ public static JsonArrayBuilder createArrayBuilder(JsonArray initialData) { return JsonProvider.provider().createArrayBuilder(initialData); }
/** * Creates a JSON array builder, initialized with an initial content * taken from a JsonArray * * @param initialData the initial array in the builder * @return a JSON array builder * @since 1.1 */ public static JsonArrayBuilder createArrayBuilder(JsonArray initialData) { return JsonProvider.provider().createArrayBuilder(initialData); }
/** * Creates a JSON array builder, initialized with the specified array * * @param array the initial array in the builder * @return a JSON array builder * * @since 1.1 */ public static JsonArrayBuilder createArrayBuilder(JsonArray array) { return JsonProvider.provider().createArrayBuilder(array); }
@Override public JsonArray toJsonArray() { JsonArrayBuilder builder = provider.createArrayBuilder(); for (PatchValue patch : patches) { builder.add(patch.toJson()); } return builder.build(); }