public class PostalAddress extends Object implements Comparable, com.aspose.ms.System.Collections.IEqualityComparer
Represents a postal address.
Constructor and Description |
---|
PostalAddress() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object 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(Object a,
Object b)
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(Object 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 boolean getPrefered()
Gets or sets a value which defines whether postal address is preferred.
public void setPrefered(boolean value)
Gets or sets a value which defines whether postal address is preferred.
value
- a boolean.public PostalAddressCategory getCategory()
Gets or sets an object category
PostalAddressCategory
object.public void setCategory(PostalAddressCategory value)
Gets or sets an object category
value
- a PostalAddressCategory
object.public boolean isMailingAddress()
Gets or sets a value which defines whether address may be used for mailing.
public void setMailingAddress(boolean value)
Gets or sets a value which defines whether address may be used for mailing.
value
- a boolean.public void setStreet(String value)
Gets or sets a street
value
- a String
object.public void setAddress(String value)
Gets or sets an address
value
- a String
object.public void setCountryCode(String value)
Gets or sets a country code
value
- a String
object.public String getPostOfficeBox()
Gets or sets a post Office box
String
object.public void setPostOfficeBox(String value)
Gets or sets a post Office box
value
- a String
object.public void setCountry(String value)
Gets or sets a country
value
- a String
object.public void setPostalCode(String value)
Gets or sets a post code
value
- a String
object.public String getStateOrProvince()
Gets or sets a region
String
object.public void setStateOrProvince(String value)
Gets or sets a region
value
- a String
object.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(Object obj)
GetHashCode returns a hash function for specified object.
hashCode
in interface com.aspose.ms.System.Collections.IEqualityComparer
obj
- The Object for which a hash code is to be returned.public boolean equals(Object obj)
Determines whether the specified Object is equal to the current Object.
public boolean equals(Object a, Object b)
Determines whether the specified object instances are considered equal.
equals
in interface com.aspose.ms.System.Collections.IEqualityComparer
a
- The first object to compare.b
- 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(Object 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
obj
- An object to compare with this instance, or null.Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.