Class Address

    • Method Detail

      • city

        public final String city()

        The city for this address.

        Returns:
        The city for this address.
      • company

        public final String company()

        The company name for this address.

        Returns:
        The company name for this address.
      • country

        public final String country()

        The country for this address.

        Returns:
        The country for this address.
      • emailAddress

        public final String emailAddress()

        The recipient's email address.

        Returns:
        The recipient's email address.
      • name

        public final String name()

        The recipient's name for this address.

        Returns:
        The recipient's name for this address.
      • phoneNumber

        public final String phoneNumber()

        The recipient's phone number.

        Returns:
        The recipient's phone number.
      • postalCode

        public final String postalCode()

        The postal code for this address.

        Returns:
        The postal code for this address.
      • stateOrProvince

        public final String stateOrProvince()

        The state or province for this address.

        Returns:
        The state or province for this address.
      • street1

        public final String street1()

        The first line of the street address.

        Returns:
        The first line of the street address.
      • street2

        public final String street2()

        The second line of the street address.

        Returns:
        The second line of the street address.
      • street3

        public final String street3()

        The third line of the street address.

        Returns:
        The third line of the street address.
      • serializableBuilderClass

        public static Class<? extends Address.Builder> serializableBuilderClass()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)