com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class PostalAddress

    • Constructor Detail

      • PostalAddress

        public PostalAddress()
    • Method Detail

      • getPrefered

        public final boolean getPrefered()

        Gets or sets a value which defines whether postal address is preferred.

      • setPrefered

        public final void setPrefered(boolean value)

        Gets or sets a value which defines whether postal address is preferred.

      • setCategory

        public final void setCategory(PostalAddressCategory value)

        Gets or sets an object category

      • isMailingAddress

        public final boolean isMailingAddress()

        Gets or sets a value which defines whether address may be used for mailing.

      • setMailingAddress

        public final void setMailingAddress(boolean value)

        Gets or sets a value which defines whether address may be used for mailing.

      • getStreet

        public final String getStreet()

        Gets or sets a street

      • setStreet

        public final void setStreet(String value)

        Gets or sets a street

      • getCity

        public final String getCity()

        Gets or sets a city

      • setCity

        public final void setCity(String value)

        Gets or sets a city

      • getAddress

        public final String getAddress()

        Gets or sets an address

      • setAddress

        public final void setAddress(String value)

        Gets or sets an address

      • getCountryCode

        public final String getCountryCode()

        Gets or sets a country code

      • setCountryCode

        public final void setCountryCode(String value)

        Gets or sets a country code

      • getPostOfficeBox

        public final String getPostOfficeBox()

        Gets or sets a post Office box

      • setPostOfficeBox

        public final void setPostOfficeBox(String value)

        Gets or sets a post Office box

      • getCountry

        public final String getCountry()

        Gets or sets a country

      • setCountry

        public final void setCountry(String value)

        Gets or sets a country

      • getPostalCode

        public final String getPostalCode()

        Gets or sets a post code

      • setPostalCode

        public final void setPostalCode(String value)

        Gets or sets a post code

      • getStateOrProvince

        public final String getStateOrProvince()

        Gets or sets a region

      • setStateOrProvince

        public final void setStateOrProvince(String value)

        Gets or sets a region

      • toString

        public String toString()

        Returns a string that represents the current object.

        Overrides:
        toString in class Object
        Returns:
        Returns a string that represents the current object.
      • hashCode

        public int hashCode()

        GetHashCode returns a hash function for this object.

        Overrides:
        hashCode in class Object
        Returns:
        Returns a hash function for this object.
      • hashCode

        public int hashCode(PostalAddress obj)

        GetHashCode returns a hash function for specified object.

        Parameters:
        obj - The Object for which a hash code is to be returned.
        Returns:
        Returns a hash function for specified object.
      • equals

        public boolean equals(Object obj)

        Determines whether the specified Object is equal to the current Object.

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<PostalAddress>
        Overrides:
        equals in class Object
        Parameters:
        obj - The Object to compare with the current Object.
        Returns:
        Returns a boolean indicating if the passed in object obj is Equal to this.
      • equals

        public final boolean equals(PostalAddress x,
                     PostalAddress y)

        Determines whether the specified object instances are considered equal.

        Parameters:
        x - The first object to compare.
        y - The second object to compare.
        Returns:
        true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.
      • op_Equality

        public static boolean op_Equality(PostalAddress a,
                          PostalAddress b)

        Determines whether the specified objects are equal.

        Parameters:
        a - First object to compare
        b - Second object to compare
        Returns:
        Returns true if objects are equal, otherwise false.
      • op_Inequality

        public static boolean op_Inequality(PostalAddress a,
                            PostalAddress b)

        Determines whether the specified objects are not equal.

        Parameters:
        a - First object to compare
        b - Second object to compare
        Returns:
        Returns true if objects are not equal, otherwise false.
      • compareTo

        public int compareTo(PostalAddress obj)

        Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

        Specified by:
        compareTo in interface Comparable<PostalAddress>
        Parameters:
        obj - An object to compare with this instance, or null.
        Returns:
        This method returns: a value less than 0 if this is less than value 0 if this is equal to value a value greater than 0 if this is greater than value