Package io.wcm.devops.conga.model.util
Class DefaultUtil
- java.lang.Object
-
- io.wcm.devops.conga.model.util.DefaultUtil
-
public final class DefaultUtil extends Object
Helper methods for defaulting for fallback values if a given value is null.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> List<T>
defaultEmptyList(List<T> list)
Returns the given list, or an empty (modifiable) list if given null.static <K,V>
Map<K,V>defaultEmptyMap(Map<K,V> map)
Returns the given map, or an empty (modifiable) map if given null.
-