abstract static class Json.JsonBuilder<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ignoreEmptyBuilders |
| Constructor and Description |
|---|
JsonBuilder(boolean ignoreEmptyBuilders) |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
build() |
abstract boolean |
isEmpty() |
protected boolean |
isIgnored(Object value) |
protected boolean |
isValuesEmpty(Collection<Object> values) |
protected abstract T |
self() |
JsonBuilder(boolean ignoreEmptyBuilders)
ignoreEmptyBuilders - If set to true all empty builders added to this builder will be ignored during
build()public abstract boolean isEmpty()
true if there are no elements/properties, false otherwisepublic abstract String build()
protected boolean isIgnored(Object value)
value - true if the value is null or an empty builder and ignoreEmptyBuilders is set to
true, false
otherwiseprotected boolean isValuesEmpty(Collection<Object> values)
protected abstract T self()
Copyright © 2021 JBoss by Red Hat. All rights reserved.