public class ShippingType extends java.lang.Object implements CloneableType
Modifier and Type | Class and Description |
---|---|
static class |
ShippingType.ServiceEnumeration
Enumeration class of valid options for ServiceType.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
country
Country to ship to
|
private FloatUnit |
price
price of the shipping.
|
private ShippingType.ServiceEnumeration |
service
Service used.
|
Constructor and Description |
---|
ShippingType(FloatUnit price,
ShippingType.ServiceEnumeration service,
java.lang.String country) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones this object.
|
boolean |
equals(java.lang.Object o) |
java.lang.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.
|
java.lang.String |
toString()
Returns a String representation of this object.
|
private final FloatUnit price
private final ShippingType.ServiceEnumeration service
private final java.lang.String country
public ShippingType(FloatUnit price, ShippingType.ServiceEnumeration service, java.lang.String country)
price
- The price of the shipping optionservice
- Shipping service used.country
- Country shipped to.public java.lang.String getCountry()
public FloatUnit getPrice()
public ShippingType.ServiceEnumeration getService()
public java.lang.Object clone()
clone
in interface CloneableType
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object