> @@ -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;
> +         }
> +
> +         @Override
> +         public String toString() {
> +            return String.format("getSpecificValueInMap('%1$s')", keyValue);
> +         }

I'll let @adriancole comment on what is expected but 
Suppliers2.getLastValueInMap defines a toString

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

Reply via email to