public class ShippingType extends Object implements CloneableType
Modifier and Type | Class and Description |
---|---|
static class |
ShippingType.ServiceEnumeration
Enumeration class of valid options for ServiceType.
|
Constructor and Description |
---|
ShippingType(FloatUnit price,
ShippingType.ServiceEnumeration service,
String country)
Creates a new instance of ShippingType
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones this object.
|
boolean |
equals(Object o) |
String |
getCountry()
Returns the destination country.
|
FloatUnit |
getPrice()
Returns the price of this shipping option.
|
ShippingType.ServiceEnumeration |
getService()
Returns the ServiceEnumeration instance for the shipping service used.
|
String |
toString()
Returns a String representation of this object.
|
public ShippingType(FloatUnit price, ShippingType.ServiceEnumeration service, String country)
price
- The price of the shipping optionservice
- Shipping service used.country
- Country shipped to.public String getCountry()
public FloatUnit getPrice()
public ShippingType.ServiceEnumeration getService()
public Object clone()
clone
in interface CloneableType
clone
in class Object
public String toString()
Copyright © 2016. All rights reserved.