public final class ObjectBuilder
extends java.lang.Object
LDValue.buildObject()
. Builder methods are not thread-safe.Constructor and Description |
---|
ObjectBuilder() |
Modifier and Type | Method and Description |
---|---|
LDValue |
build()
Returns an object containing the builder's current elements.
|
ObjectBuilder |
put(java.lang.String key,
LDValue value)
Sets a key-value pair in the builder, overwriting any previous value for that key.
|
public ObjectBuilder put(java.lang.String key, LDValue value)
key
- a string keyvalue
- a valuepublic LDValue build()
build()
.LDValue
that is a JSON object