Package io.kjson
Class JSONArray.Builder
-
- All Implemented Interfaces:
public final class JSONArray.Builder extends AbstractBuilder<JSONValue>
JSONArray builder class.
-
-
Constructor Summary
Constructors Constructor Description JSONArray.Builder(Integer size, Function1<JSONArray.Builder, Unit> block)
-
Method Summary
Modifier and Type Method Description final Unitadd(JSONValue value)Add a JSONValue. final Unitadd(String value)Add a JSONString with the supplied value. final Unitadd(Integer value)Add a JSONInt with the supplied value. final Unitadd(Long value)Add a JSONLong with the supplied value. final Unitadd(BigDecimal value)Add a JSONDecimal with the supplied value. final Unitadd(Boolean value)Add a JSONBoolean with the supplied value. JSONArraybuild()Build a JSONArray with the values added. -
-
Constructor Detail
-
JSONArray.Builder
JSONArray.Builder(Integer size, Function1<JSONArray.Builder, Unit> block)
-
-
Method Detail
-
add
final Unit add(String value)
Add a JSONString with the supplied value.
-
add
final Unit add(BigDecimal value)
Add a JSONDecimal with the supplied value.
-
add
final Unit add(Boolean value)
Add a JSONBoolean with the supplied value.
-
-
-
-