public class CollectionsHelper extends Object
| Constructor and Description |
|---|
CollectionsHelper() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> V |
getOrFail(Map<K,V> src,
K key,
String where) |
static <K,V> V |
putIfNotNull(Map<K,V> dest,
K key,
V value) |
@CheckForNull public static <K,V> V putIfNotNull(@Nonnull Map<K,V> dest, @Nonnull K key, @CheckForNull V value)
@CheckForNull public static <K,V> V getOrFail(@Nonnull Map<K,V> src, @Nonnull K key, @Nonnull String where) throws IOException
IOExceptionCopyright © 2004–2018. All rights reserved.