public abstract class SerializerUtils extends Object
| Constructor and Description |
|---|
SerializerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static StringBuilder |
appendAnnotations(StringBuilder sb,
List<Annotation> annotations)
Append a
List<Annotation> to a string builder as double-quoted key-value pairs. |
static StringBuilder |
appendQuoted(StringBuilder sb,
String raw) |
static StringBuilder |
appendTagMap(StringBuilder sb,
Map<String,String> tags)
Append a
Map<String, String> to a string builder as double-quoted key-value pairs. |
static StringBuilder |
appendTags(StringBuilder sb,
String tagKey,
List<String> tagValues)
Append a
List<String> to a string builder as double-quoted key-value pairs
with a fixed key. |
public static StringBuilder appendQuoted(StringBuilder sb, String raw)
public static StringBuilder appendTagMap(StringBuilder sb, @Nullable Map<String,String> tags)
Map<String, String> to a string builder as double-quoted key-value pairs.sb - A instancetags - Aap of tags.public static StringBuilder appendAnnotations(StringBuilder sb, @Nullable List<Annotation> annotations)
List<Annotation> to a string builder as double-quoted key-value pairs.sb - A instanceannotations - List of annotations.public static StringBuilder appendTags(StringBuilder sb, String tagKey, @Nullable List<String> tagValues)
List<String> to a string builder as double-quoted key-value pairs
with a fixed key.sb - A instancetagKey - Key to usetagValues - List of tags to append.Copyright © 2020. All rights reserved.