Class Address

    • Method Detail

      • streetName

        public final String streetName()

        The address street, such as 8th Avenue.

        Returns:
        The address street, such as 8th Avenue.
      • streetSuffix

        public final String streetSuffix()

        The address suffix, such as the N in 8th Avenue N.

        Returns:
        The address suffix, such as the N in 8th Avenue N.
      • postDirectional

        public final String postDirectional()

        An address suffix location, such as the S. Unit A in Central Park S. Unit A.

        Returns:
        An address suffix location, such as the S. Unit A in Central Park S. Unit A.
      • preDirectional

        public final String preDirectional()

        An address prefix location, such as the N in N. Third St..

        Returns:
        An address prefix location, such as the N in N. Third St..
      • streetNumber

        public final String streetNumber()

        The numeric portion of an address.

        Returns:
        The numeric portion of an address.
      • city

        public final String city()

        The city of an address.

        Returns:
        The city of an address.
      • state

        public final String state()

        The state of an address.

        Returns:
        The state of an address.
      • postalCode

        public final String postalCode()

        The postal code of an address.

        Returns:
        The postal code of an address.
      • postalCodePlus4

        public final String postalCodePlus4()

        The Zip + 4 or postal code + 4 of an address.

        Returns:
        The Zip + 4 or postal code + 4 of an address.
      • country

        public final String country()

        The country of an address.

        Returns:
        The country of an 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)