Class Shipping


  • public final class Shipping
    extends java.lang.Object
    • Constructor Detail

      • Shipping

        public Shipping()
      • Shipping

        public Shipping​(Address address,
                        Phone phone)
        Creates a new Shipping instance.
        Parameters:
        address - The shipping address
        phone - The phone number associated with the shipping address
    • Method Detail

      • getAddress

        public Address getAddress()
        The shipping address
      • getPhone

        public Phone getPhone()
        The phone number associated with the shipping address
      • setAddress

        public void setAddress​(Address address)
        The shipping address
      • setPhone

        public void setPhone​(Phone phone)
        The phone number associated with the shipping address
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object