PhoneNumberCategory

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.IEquatable

public class PhoneNumberCategory implements System.IEquatable<PhoneNumberCategory>

Represents category for a phone number

Constructors

Constructor Description
PhoneNumberCategory(String description) Initializes a new instance of the PhoneNumberCategory 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
OFFICE_VALUE String value for ‘Office’ category
MOBILE_VALUE String value for ‘Mobile’ category
FAX_VALUE String value for ‘Fax’ category
HOME_FAX_VALUE String value for ‘Fax’ category
WORK_FAX_VALUE String value for ‘Fax’ category
PAGER_VALUE String value for ‘Pager’ category
CAR_VALUE String value for ‘Car’ category
ISDN_VALUE String value for ‘Isdn’ category
TELEX_VALUE String value for ‘Telex’ category
CALLBACK_VALUE String value for ‘Callback’ category
RADIO_VALUE String value for ‘Radio’ category
COMPANY_VALUE String value for ‘Company’ category
TTY_TDD_VALUE String value for ‘TtyTdd’ category
ASSISTANT_VALUE String value for ‘Assistant’ category
PRIMARY_VALUE String value for ‘Primary’ category

Methods

Method Description
getCustom() Custom phone category
getHome() Home phone number
getWork() Work phone number
getOffice() Office phone number
getMobile() Mobile phone number
getFax() Fax number
getHomeFax() Home fax number
getWorkFax() Work fax number
getPager() Pager number
getCar() Car phone number
getIsdn() Isdn phone number
getTelex() Telex
getCallback() Callback phone number
getRadio() Radio phone number
getCompany() Company phone number
getTtyTdd() Tty/Tdd
getAssistant() Assistant phone number
getPrimary() Primary phone number
getValue() Gets category of a phone number
getDescription() Gets description for the ‘Custom’ category of a phone number
toString() Returns a string that represents the current object.
hashCode() GetHashCode returns a hash function for this object.
equals(Object obj) Determines whether the specified Object is equal to the current Object.
op_Equality(PhoneNumberCategory a, PhoneNumberCategory b) Determines whether the specified objects are equal.
op_Inequality(PhoneNumberCategory a, PhoneNumberCategory b) Determines whether the specified objects are not equal.
equals(PhoneNumberCategory other) Determines whether the specified object is equal to the current object.

PhoneNumberCategory(String description)

public PhoneNumberCategory(String description)

Initializes a new instance of the PhoneNumberCategory class with ‘Custom’ category.

Parameters:

Parameter Type Description
description java.lang.String Description for the ‘Custom’ category of a phone number

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

OFFICE_VALUE

public static final String OFFICE_VALUE

String value for ‘Office’ category

MOBILE_VALUE

public static final String MOBILE_VALUE

String value for ‘Mobile’ category

FAX_VALUE

public static final String FAX_VALUE

String value for ‘Fax’ category

HOME_FAX_VALUE

public static final String HOME_FAX_VALUE

String value for ‘Fax’ category

WORK_FAX_VALUE

public static final String WORK_FAX_VALUE

String value for ‘Fax’ category

PAGER_VALUE

public static final String PAGER_VALUE

String value for ‘Pager’ category

CAR_VALUE

public static final String CAR_VALUE

String value for ‘Car’ category

ISDN_VALUE

public static final String ISDN_VALUE

String value for ‘Isdn’ category

TELEX_VALUE

public static final String TELEX_VALUE

String value for ‘Telex’ category

CALLBACK_VALUE

public static final String CALLBACK_VALUE

String value for ‘Callback’ category

RADIO_VALUE

public static final String RADIO_VALUE

String value for ‘Radio’ category

COMPANY_VALUE

public static final String COMPANY_VALUE

String value for ‘Company’ category

TTY_TDD_VALUE

public static final String TTY_TDD_VALUE

String value for ‘TtyTdd’ category

ASSISTANT_VALUE

public static final String ASSISTANT_VALUE

String value for ‘Assistant’ category

PRIMARY_VALUE

public static final String PRIMARY_VALUE

String value for ‘Primary’ category

getCustom()

public static PhoneNumberCategory getCustom()

Custom phone category

Returns: PhoneNumberCategory

getHome()

public static PhoneNumberCategory getHome()

Home phone number

Returns: PhoneNumberCategory

getWork()

public static PhoneNumberCategory getWork()

Work phone number

Returns: PhoneNumberCategory

getOffice()

public static PhoneNumberCategory getOffice()

Office phone number

Returns: PhoneNumberCategory

getMobile()

public static PhoneNumberCategory getMobile()

Mobile phone number

Returns: PhoneNumberCategory

getFax()

public static PhoneNumberCategory getFax()

Fax number

Returns: PhoneNumberCategory

getHomeFax()

public static PhoneNumberCategory getHomeFax()

Home fax number

Returns: PhoneNumberCategory

getWorkFax()

public static PhoneNumberCategory getWorkFax()

Work fax number

Returns: PhoneNumberCategory

getPager()

public static PhoneNumberCategory getPager()

Pager number

Returns: PhoneNumberCategory

getCar()

public static PhoneNumberCategory getCar()

Car phone number

Returns: PhoneNumberCategory

getIsdn()

public static PhoneNumberCategory getIsdn()

Isdn phone number

Returns: PhoneNumberCategory

getTelex()

public static PhoneNumberCategory getTelex()

Telex

Returns: PhoneNumberCategory

getCallback()

public static PhoneNumberCategory getCallback()

Callback phone number

Returns: PhoneNumberCategory

getRadio()

public static PhoneNumberCategory getRadio()

Radio phone number

Returns: PhoneNumberCategory

getCompany()

public static PhoneNumberCategory getCompany()

Company phone number

Returns: PhoneNumberCategory

getTtyTdd()

public static PhoneNumberCategory getTtyTdd()

Tty/Tdd

Returns: PhoneNumberCategory

getAssistant()

public static PhoneNumberCategory getAssistant()

Assistant phone number

Returns: PhoneNumberCategory

getPrimary()

public static PhoneNumberCategory getPrimary()

Primary phone number

Returns: PhoneNumberCategory

getValue()

public final String getValue()

Gets category of a phone number

Returns: java.lang.String

getDescription()

public final String getDescription()

Gets description for the ‘Custom’ category of a phone number

Returns: java.lang.String

toString()

public String toString()

Returns a string that represents the current object.

Returns: java.lang.String - Returns a string that represents the current object.

hashCode()

public int hashCode()

GetHashCode returns a hash function for this object.

Returns: int - Returns a hash function for this object.

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.

op_Equality(PhoneNumberCategory a, PhoneNumberCategory b)

public static boolean op_Equality(PhoneNumberCategory a, PhoneNumberCategory b)

Determines whether the specified objects are equal.

Parameters:

Parameter Type Description
a PhoneNumberCategory First object to compare
b PhoneNumberCategory Second object to compare

Returns: boolean - Returns true if objects are equal, otherwise false.

op_Inequality(PhoneNumberCategory a, PhoneNumberCategory b)

public static boolean op_Inequality(PhoneNumberCategory a, PhoneNumberCategory b)

Determines whether the specified objects are not equal.

Parameters:

Parameter Type Description
a PhoneNumberCategory First object to compare
b PhoneNumberCategory Second object to compare

Returns: boolean - Returns true if objects are not equal, otherwise false.

equals(PhoneNumberCategory other)

public boolean equals(PhoneNumberCategory other)

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

Parameters:

Parameter Type Description
other PhoneNumberCategory The object to compare with the current object.

Returns: boolean - true if the specified object is equal to the current object; otherwise, false.