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.
|
| 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.
|
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 CloneableTypeclone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.ObjectCopyright © 2025. All rights reserved.