Class Address

    • Method Detail

      • streetAddress

        public final String streetAddress()

        The street of the address.

        Returns:
        The street of the address.
      • locality

        public final String locality()

        A string of the address locality.

        Returns:
        A string of the address locality.
      • region

        public final String region()

        The region of the address.

        Returns:
        The region of the address.
      • postalCode

        public final String postalCode()

        The postal code of the address.

        Returns:
        The postal code of the address.
      • country

        public final String country()

        The country of the address.

        Returns:
        The country of the address.
      • formatted

        public final String formatted()

        A string containing a formatted version of the address for display.

        Returns:
        A string containing a formatted version of the address for display.
      • type

        public final String type()

        A string representing the type of address. For example, "Home."

        Returns:
        A string representing the type of address. For example, "Home."
      • primary

        public final Boolean primary()

        A Boolean value representing whether this is the primary address for the associated resource.

        Returns:
        A Boolean value representing whether this is the primary address for the associated resource.
      • 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)