Class JsonObject.Builder

java.lang.Object
com.revetsec.json.JsonObject.Builder
Enclosing class:
JsonObject

@NotThreadSafe @CheckReturnValue public static final class JsonObject.Builder extends Object
Builds a JsonObject one member at a time, keeping the order in which members are added.

Each put adds exactly one member, and a name that is already present throws IllegalArgumentException rather than replacing the earlier value. Every check runs in put, so build() never fails. A builder may be reused: each build() returns a snapshot of the members added so far.

Since:
1.0.0
Author:
Mark Allen