Class AddressPojo


  • @Immutable
    public class AddressPojo
    extends Object
    Represents the needed extract of an "Address".
    Author:
    Philip Helger
    • Constructor Detail

      • AddressPojo

        public AddressPojo​(@Nullable
                           String sFullAddress,
                           @Nullable
                           String sStreetName,
                           @Nullable
                           String sBuildingNumber,
                           @Nullable
                           String sTown,
                           @Nullable
                           String sPostalCode,
                           @Nullable
                           String sCountryCode)
    • Method Detail

      • getFullAddress

        @Nullable
        public final String getFullAddress()
        Returns:
        The full address line. May be null.
      • getStreetName

        @Nullable
        public final String getStreetName()
        Returns:
        The street name of the address. May be null.
      • getBuildingNumber

        @Nullable
        public final String getBuildingNumber()
        Returns:
        The building number of the address. May be null.
      • getTown

        @Nullable
        public final String getTown()
        Returns:
        The town or city name of the address. May be null.
      • getPostalCode

        @Nullable
        public final String getPostalCode()
        Returns:
        The postal code of the address. May be null.
      • getCountryCode

        @Nullable
        public final String getCountryCode()
        Returns:
        The country code of the address. May be null. Note: that is not checked against any rules.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object