@Override public SearchResultBuilder addAll(final Iterable<? extends JsonValue> values) { jsonArrayBuilder.addAll(values); return this; }
@Override public SearchResultBuilder addAll(final Iterable<? extends JsonValue> values) { jsonArrayBuilder.addAll(values); return this; }
/** * Returns a new mutable builder for a {@code JsonArray} which is already initialised with the given values. * * @param values the values of the JSON array to be created. This might be an existing JSON array as well. * @return a new JSON array builder. * @throws NullPointerException if {@code values} is {@code null}. */ public static JsonArrayBuilder newArrayBuilder(final Iterable<? extends JsonValue> values) { final JsonArrayBuilder result = ImmutableJsonArrayBuilder.newInstance(); result.addAll(values); return result; }
/** * Returns a new mutable builder for a {@code JsonArray} which is already initialised with the given values. * * @param values the values of the JSON array to be created. This might be an existing JSON array as well. * @return a new JSON array builder. * @throws NullPointerException if {@code values} is {@code null}. */ public static JsonArrayBuilder newArrayBuilder(final Iterable<? extends JsonValue> values) { return newArrayBuilder().addAll(values); }