public Shipping(String country,Collection<String> regions,String service,float price,String currency){
  this.country=country;
  if (regions != null) {
    this.regions=ImmutableList.copyOf(regions);
  }
 else {
    this.regions=Collections.emptySet();
  }
  this.price=price;
  this.service=service;
  this.currency=currency;
}

public Shipping ( String country , Collection < String > regions , String service , float price , String currency ) { this . country = country ; if ( regions != null ) { this . regions = ImmutableList . copyOf ( regions ) ; } else { this . regions = Collections . emptySet ( ) ; } this . price = price ; this . service = service ; this . currency = currency ; }
creates a shipping object .
