Keep web socket open during calling to improve message delivery.

This commit is contained in:
Cody Henthorne
2022-08-03 14:16:20 -04:00
committed by Greyson Parrelli
parent 120dda6e68
commit b002235ef7
3 changed files with 74 additions and 5 deletions

View File

@@ -161,6 +161,10 @@ public class Util {
return collection != null && !collection.isEmpty();
}
public static <K, V> boolean hasItems(@Nullable Map<K, V> map) {
return map != null && !map.isEmpty();
}
public static <K, V> V getOrDefault(@NonNull Map<K, V> map, K key, V defaultValue) {
return map.containsKey(key) ? map.get(key) : defaultValue;
}