PostalAddressCategory
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.ms.System.IEquatable
public class PostalAddressCategory implements System.IEquatable<PostalAddressCategory>
Represents category for a postal address
Constructors
| Constructor | Description |
|---|---|
| PostalAddressCategory(String description) | Initializes a new instance of the PostalAddressCategory class with ‘Custom’ category. |
Fields
| Field | Description |
|---|---|
| CUSTOM_VALUE | String value for ‘Custom’ category |
| HOME_VALUE | String value for ‘Home’ category |
| WORK_VALUE | String value for ‘Work’ category |
Methods
| Method | Description |
|---|---|
| equals(PostalAddressCategory other) | Determines whether the specified object is equal to the current object. |
| equals(Object obj) | Determines whether the specified Object is equal to the current Object. |
| getClass() | |
| getCustom() | Defines a type of an address as an address of type other. |
| getDescription() | Gets description for the ‘Custom’ category of a postal address |
| getHome() | Defines a type of an address as a home address. |
| getValue() | Gets category of a postal address |
| getWork() | Defines a type of an address as a work address. |
| hashCode() | GetHashCode returns a hash function for this object. |
| notify() | |
| notifyAll() | |
| op_Equality(PostalAddressCategory a, PostalAddressCategory b) | Determines whether the specified objects are equal. |
| op_Inequality(PostalAddressCategory a, PostalAddressCategory b) | Determines whether the specified objects are not equal. |
| toString() | Returns a string that represents the current object. |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
PostalAddressCategory(String description)
public PostalAddressCategory(String description)
Initializes a new instance of the PostalAddressCategory class with ‘Custom’ category.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| description | java.lang.String | Description for the ‘Custom’ category of a postal address |
CUSTOM_VALUE
public static final String CUSTOM_VALUE
String value for ‘Custom’ category
HOME_VALUE
public static final String HOME_VALUE
String value for ‘Home’ category
WORK_VALUE
public static final String WORK_VALUE
String value for ‘Work’ category
equals(PostalAddressCategory other)
public boolean equals(PostalAddressCategory other)
Determines whether the specified object is equal to the current object.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | PostalAddressCategory | The object to compare with the current object. |
Returns: boolean - true if the specified object is equal to the current object; otherwise, false.
equals(Object obj)
public boolean equals(Object obj)
Determines whether the specified Object is equal to the current Object.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj | java.lang.Object | The Object to compare with the current Object. |
Returns: boolean - Returns a boolean indicating if the passed in object obj is Equal to this.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getCustom()
public static PostalAddressCategory getCustom()
Defines a type of an address as an address of type other.
Returns: PostalAddressCategory
getDescription()
public final String getDescription()
Gets description for the ‘Custom’ category of a postal address
Returns: java.lang.String
getHome()
public static PostalAddressCategory getHome()
Defines a type of an address as a home address.
Returns: PostalAddressCategory
getValue()
public final String getValue()
Gets category of a postal address
Returns: java.lang.String
getWork()
public static PostalAddressCategory getWork()
Defines a type of an address as a work address.
Returns: PostalAddressCategory
hashCode()
public int hashCode()
GetHashCode returns a hash function for this object.
Returns: int - Returns a hash function for this object.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
op_Equality(PostalAddressCategory a, PostalAddressCategory b)
public static boolean op_Equality(PostalAddressCategory a, PostalAddressCategory b)
Determines whether the specified objects are equal.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| a | PostalAddressCategory | First object to compare |
| b | PostalAddressCategory | Second object to compare |
Returns: boolean - Returns true if objects are equal, otherwise false.
op_Inequality(PostalAddressCategory a, PostalAddressCategory b)
public static boolean op_Inequality(PostalAddressCategory a, PostalAddressCategory b)
Determines whether the specified objects are not equal.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| a | PostalAddressCategory | First object to compare |
| b | PostalAddressCategory | Second object to compare |
Returns: boolean - Returns true if objects are not equal, otherwise false.
toString()
public String toString()
Returns a string that represents the current object.
Returns: java.lang.String - Returns a string that represents the current object.
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |