| Modifier and Type | Class and Description | 
|---|---|
| static class  | Metrics.JsonObjectBuilder.JsonObjectA super simple representation of a JSON object. | 
| Constructor and Description | 
|---|
| JsonObjectBuilder() | 
| Modifier and Type | Method and Description | 
|---|---|
| Metrics.JsonObjectBuilder | appendField(String key,
           int value)Appends an integer field to the JSON. | 
| Metrics.JsonObjectBuilder | appendField(String key,
           int[] values)Appends an integer array to the JSON. | 
| Metrics.JsonObjectBuilder | appendField(String key,
           Metrics.JsonObjectBuilder.JsonObject object)Appends an object to the JSON. | 
| Metrics.JsonObjectBuilder | appendField(String key,
           Metrics.JsonObjectBuilder.JsonObject[] values)Appends an object array to the JSON. | 
| Metrics.JsonObjectBuilder | appendField(String key,
           String value)Appends a string field to the JSON. | 
| Metrics.JsonObjectBuilder | appendField(String key,
           String[] values)Appends a string array to the JSON. | 
| Metrics.JsonObjectBuilder | appendNull(String key)Appends a null field to the JSON. | 
| Metrics.JsonObjectBuilder.JsonObject | build()Builds the JSON string and invalidates this builder. | 
public Metrics.JsonObjectBuilder appendNull(String key)
key - The key of the field.public Metrics.JsonObjectBuilder appendField(String key, String value)
key - The key of the field.value - The value of the field.public Metrics.JsonObjectBuilder appendField(String key, int value)
key - The key of the field.value - The value of the field.public Metrics.JsonObjectBuilder appendField(String key, Metrics.JsonObjectBuilder.JsonObject object)
key - The key of the field.object - The object.public Metrics.JsonObjectBuilder appendField(String key, String[] values)
key - The key of the field.values - The string array.public Metrics.JsonObjectBuilder appendField(String key, int[] values)
key - The key of the field.values - The integer array.public Metrics.JsonObjectBuilder appendField(String key, Metrics.JsonObjectBuilder.JsonObject[] values)
key - The key of the field.values - The integer array.public Metrics.JsonObjectBuilder.JsonObject build()
Copyright © 2015–2025 tr7zw. All rights reserved.