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) |
| 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 CloneableTypeclone in class Objectpublic String toString()
Copyright © 2021. All rights reserved.