> @@ -46,6 +46,21 @@ public String toString() {
>           }
>        };
>     }
> +   
> +   public static <K, V> Supplier<V> getSpecificValueInMap(final 
> Supplier<Map<K, Supplier<V>>> input, final K keyValue) {
> +      return new Supplier<V>() {
> +         @Override
> +         public V get() {
> +            Supplier<V> value = input.get().get(keyValue);
> +            return value != null ? value.get() : null;

[style] Does this read more easily?
```
Map<K, Supplier<V>> map = input.get(); // I guess we assume this is non-null?
return map.containsKey(keyValue) ? map.get(keyValue).get() : null;
```


---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/31/files#r4841657

Reply via email to