public class SerializableConfigMapHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
putIfNotBlank(Map<String,Object> map,
String key,
String value)
Put value in the map if the value is not blank.
|
static void |
putIfNotEmpty(Map<String,Object> map,
String key,
Collection value) |
static void |
putIfNotEmpty(Map<String,Object> map,
String key,
Map value) |
static void |
putIfNotNull(Map<String,Object> map,
String key,
Object value)
Put value in the map if the value is not null.
|
static void |
putIfNotTrue(Map<String,Object> map,
String key,
Boolean value)
Use when default is true, in order to reduce the size of result file.
|
static void |
putIfTrue(Map<String,Object> map,
String key,
Boolean value)
Use when default is false, in order to reduce the size of result file.
|
public static void putIfNotNull(@NotNull Map<String,Object> map, @NotNull String key, @Nullable Object value)
public static void putIfNotBlank(@NotNull Map<String,Object> map, @NotNull String key, @Nullable String value)
public static void putIfNotEmpty(@NotNull Map<String,Object> map, @NotNull String key, @Nullable Map value)
public static void putIfNotEmpty(@NotNull Map<String,Object> map, @NotNull String key, @Nullable Collection value)
public static void putIfTrue(@NotNull Map<String,Object> map, @NotNull String key, @Nullable Boolean value)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.