public T datacenters(Datacenter... in) { return datacenters(ImmutableSet.copyOf(in)); }
public T items(ProductItem... in) { return items(ImmutableSet.copyOf(in)); }
/** * @see ProductPackage#getItems() */ public T items(Set<ProductItem> items) { this.items = ImmutableSet.copyOf(checkNotNull(items, "items")); return self(); }
public T datacenters(Datacenter... in) { return datacenters(ImmutableSet.copyOf(in)); }
public T items(ProductItem... in) { return items(ImmutableSet.copyOf(in)); }
/** * @see ProductPackage#getName() */ public T name(String name) { this.name = name; return self(); }
/** * @see ProductPackage#getDatacenters() */ public T datacenters(Set<Datacenter> locations) { this.locations = ImmutableSet.copyOf(checkNotNull(locations, "locations")); return self(); }
/** * @see ProductPackage#getDescription() */ public T description(String description) { this.description = description; return self(); }
/** * @see ProductPackage#getId() */ public T id(int id) { this.id = id; return self(); }
/** * @see ProductPackage#getItems() */ public T items(Set<ProductItem> items) { this.items = ImmutableSet.copyOf(checkNotNull(items, "items")); return self(); }
/** * @see ProductPackage#getDescription() */ public T description(String description) { this.description = description; return self(); }
public T fromProductPackage(ProductPackage in) { return this .id(in.getId()) .name(in.getName()) .description(in.getDescription()) .items(in.getItems()) .datacenters(in.getDatacenters()); } }
/** * @see ProductPackage#getDatacenters() */ public T datacenters(Set<Datacenter> locations) { this.locations = ImmutableSet.copyOf(checkNotNull(locations, "locations")); return self(); }
/** * @see ProductPackage#getId() */ public T id(int id) { this.id = id; return self(); }
public T fromProductPackage(ProductPackage in) { return this .id(in.getId()) .name(in.getName()) .description(in.getDescription()) .items(in.getItems()) .datacenters(in.getDatacenters()); } }
/** * @see ProductPackage#getName() */ public T name(String name) { this.name = name; return self(); }