public class PostalAddressCategory extends Object implements IEquatable<PostalAddressCategory>
Represents category for a postal address
| Modifier and Type | Field and Description |
|---|---|
static String |
CUSTOM_VALUE
String value for 'Custom' category
|
static String |
HOME_VALUE
String value for 'Home' category
|
static String |
WORK_VALUE
String value for 'Work' category
|
| Constructor and Description |
|---|
PostalAddressCategory(String description)
Initializes a new instance of the
PostalAddressCategory class with 'Custom' category. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Determines whether the specified Object is equal to the current Object.
|
boolean |
equals(PostalAddressCategory other)
Determines whether the specified object is equal to the current object.
|
static PostalAddressCategory |
getCustom()
Defines a type of an address as an address of type other.
|
String |
getDescription()
Gets description for the 'Custom' category of a postal address
|
static PostalAddressCategory |
getHome()
Defines a type of an address as a home address.
|
String |
getValue()
Gets category of a postal address
|
static PostalAddressCategory |
getWork()
Defines a type of an address as a work address.
|
int |
hashCode()
GetHashCode returns a hash function for this object.
|
static boolean |
op_Equality(PostalAddressCategory a,
PostalAddressCategory b)
Determines whether the specified objects are equal.
|
static boolean |
op_Inequality(PostalAddressCategory a,
PostalAddressCategory b)
Determines whether the specified objects are not equal.
|
String |
toString()
Returns a string that represents the current object.
|
public static final String HOME_VALUE
String value for 'Home' category
public static final String WORK_VALUE
String value for 'Work' category
public static final String CUSTOM_VALUE
String value for 'Custom' category
public PostalAddressCategory(String description)
Initializes a new instance of the PostalAddressCategory class with 'Custom' category.
description - Description for the 'Custom' category of a postal addresspublic static PostalAddressCategory getHome()
Defines a type of an address as a home address.
public static PostalAddressCategory getWork()
Defines a type of an address as a work address.
public static PostalAddressCategory getCustom()
Defines a type of an address as an address of type other.
public final String getValue()
Gets category of a postal address
public final String getDescription()
Gets description for the 'Custom' category of a postal address
public String toString()
Returns a string that represents the current object.
public int hashCode()
GetHashCode returns a hash function for this object.
public boolean equals(Object obj)
Determines whether the specified Object is equal to the current Object.
equals in interface IEquatable<PostalAddressCategory>equals in class Objectobj - The Object to compare with the current Object.public static boolean op_Equality(PostalAddressCategory a, PostalAddressCategory b)
Determines whether the specified objects are equal.
a - First object to compareb - Second object to comparepublic static boolean op_Inequality(PostalAddressCategory a, PostalAddressCategory b)
Determines whether the specified objects are not equal.
a - First object to compareb - Second object to comparepublic boolean equals(PostalAddressCategory other)
Determines whether the specified object is equal to the current object.
other - The object to compare with the current object.Copyright (c) 2008-2024 Aspose Pty Ltd. All Rights Reserved.