public class PostalAddress extends Object implements Comparable<PostalAddress>, com.aspose.ms.System.IEquatable<PostalAddress>
Represents a postal address.
Constructor and Description |
---|
PostalAddress() |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
equals(Object obj)
Determines whether the specified Object is equal to the current Object.
|
boolean |
equals(PostalAddress obj) |
boolean |
equals(PostalAddress x,
PostalAddress y)
Determines whether the specified object instances are considered equal.
|
String |
getAddress()
Gets or sets an address
|
PostalAddressCategory |
getCategory()
Gets or sets an object category
|
String |
getCity()
Gets or sets a city
|
String |
getCountry()
Gets or sets a country
|
String |
getCountryCode()
Gets or sets a country code
|
String |
getPostalCode()
Gets or sets a post code
|
String |
getPostOfficeBox()
Gets or sets a post Office box
|
boolean |
getPrefered()
Gets or sets a value which defines whether postal address is preferred.
|
String |
getStateOrProvince()
Gets or sets a region
|
String |
getStreet()
Gets or sets a street
|
int |
hashCode()
GetHashCode returns a hash function for this object.
|
int |
hashCode(PostalAddress obj)
GetHashCode returns a hash function for specified object.
|
boolean |
isMailingAddress()
Gets or sets a value which defines whether address may be used for mailing.
|
static boolean |
op_Equality(PostalAddress a,
PostalAddress b)
Determines whether the specified objects are equal.
|
static boolean |
op_Inequality(PostalAddress a,
PostalAddress b)
Determines whether the specified objects are not equal.
|
void |
setAddress(String value)
Gets or sets an address
|
void |
setCategory(PostalAddressCategory value)
Gets or sets an object category
|
void |
setCity(String value)
Gets or sets a city
|
void |
setCountry(String value)
Gets or sets a country
|
void |
setCountryCode(String value)
Gets or sets a country code
|
void |
setMailingAddress(boolean value)
Gets or sets a value which defines whether address may be used for mailing.
|
void |
setPostalCode(String value)
Gets or sets a post code
|
void |
setPostOfficeBox(String value)
Gets or sets a post Office box
|
void |
setPrefered(boolean value)
Gets or sets a value which defines whether postal address is preferred.
|
void |
setStateOrProvince(String value)
Gets or sets a region
|
void |
setStreet(String value)
Gets or sets a street
|
String |
toString()
Returns a string that represents the current object.
|
public final boolean getPrefered()
Gets or sets a value which defines whether postal address is preferred.
public final void setPrefered(boolean value)
Gets or sets a value which defines whether postal address is preferred.
public final PostalAddressCategory getCategory()
Gets or sets an object category
public final void setCategory(PostalAddressCategory value)
Gets or sets an object category
public final boolean isMailingAddress()
Gets or sets a value which defines whether address may be used for mailing.
public final void setMailingAddress(boolean value)
Gets or sets a value which defines whether address may be used for mailing.
public final String getStreet()
Gets or sets a street
public final void setStreet(String value)
Gets or sets a street
public final String getCity()
Gets or sets a city
public final void setCity(String value)
Gets or sets a city
public final String getAddress()
Gets or sets an address
public final void setAddress(String value)
Gets or sets an address
public final String getCountryCode()
Gets or sets a country code
public final void setCountryCode(String value)
Gets or sets a country code
public final String getPostOfficeBox()
Gets or sets a post Office box
public final void setPostOfficeBox(String value)
Gets or sets a post Office box
public final String getCountry()
Gets or sets a country
public final void setCountry(String value)
Gets or sets a country
public final String getPostalCode()
Gets or sets a post code
public final void setPostalCode(String value)
Gets or sets a post code
public final String getStateOrProvince()
Gets or sets a region
public final void setStateOrProvince(String value)
Gets or sets a region
public String toString()
Returns a string that represents the current object.
public int hashCode()
GetHashCode returns a hash function for this object.
public int hashCode(PostalAddress obj)
GetHashCode returns a hash function for specified object.
obj
- The Object for which a hash code is to be returned.public final boolean equals(PostalAddress obj)
public boolean equals(Object obj)
Determines whether the specified Object is equal to the current Object.
equals
in interface com.aspose.ms.System.IEquatable<PostalAddress>
equals
in class Object
obj
- The Object to compare with the current Object.public final boolean equals(PostalAddress x, PostalAddress y)
Determines whether the specified object instances are considered equal.
x
- The first object to compare.y
- The second object to compare.public static boolean op_Equality(PostalAddress a, PostalAddress b)
Determines whether the specified objects are equal.
a
- First object to compareb
- Second object to comparepublic static boolean op_Inequality(PostalAddress a, PostalAddress b)
Determines whether the specified objects are not equal.
a
- First object to compareb
- Second object to comparepublic 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.
compareTo
in interface Comparable<PostalAddress>
obj
- An object to compare with this instance, or null.