> +              });
> +      return set;
> +   }
> +
> +   private HashSet<NetworkComponent> getNetworkComponents(VirtualGuest 
> virtualGuest) {
> +      if(virtualGuest.getVirtualGuestNetworkComponents() == null) return 
> null;
> +      return 
> Sets.newHashSet(Iterables.transform(virtualGuest.getVirtualGuestNetworkComponents(),
> +              new Function<VirtualGuestNetworkComponent, NetworkComponent>() 
> {
> +                 @Override
> +                 public NetworkComponent apply(VirtualGuestNetworkComponent 
> input) {
> +                    return new NetworkComponent(input.getSpeed());
> +                 }
> +              }));
> +   }
> +
> +   private static class TemplateObject {

Not sure about that, they are used only inside `VirtualGuestToJson` so I think 
define then as internal classes make sense here. wdyt?

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

Reply via email to