public class PhoneNumber extends Object implements Comparable<PhoneNumber>, com.aspose.ms.System.IEquatable<PhoneNumber>
Represents a phone number.
Constructor and Description |
---|
PhoneNumber() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PhoneNumber 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(PhoneNumber obj)
Determines whether the specified Object is equal to the current Object.
|
boolean |
equals(PhoneNumber x,
PhoneNumber y)
Determines whether the specified object instances are considered equal.
|
PhoneNumberCategory |
getCategory()
Gets or sets an object category
|
String |
getNumber()
Gets or sets a phone number
|
boolean |
getPrefered()
Gets or sets a value which defines whether phone number is preferred.
|
int |
hashCode()
GetHashCode returns a hash function for this object.
|
int |
hashCode(PhoneNumber obj)
GetHashCode returns a hash function for specified object.
|
static boolean |
op_Equality(PhoneNumber a,
PhoneNumber b)
Determines whether the specified objects are equal.
|
static boolean |
op_Inequality(PhoneNumber a,
PhoneNumber b)
Determines whether the specified objects are not equal.
|
void |
setCategory(PhoneNumberCategory value)
Gets or sets an object category
|
void |
setNumber(String value)
Gets or sets a phone number
|
void |
setPrefered(boolean value)
Gets or sets a value which defines whether phone number is preferred.
|
String |
toString()
Returns a string that represents the current object.
|
public final boolean getPrefered()
Gets or sets a value which defines whether phone number is preferred.
public final void setPrefered(boolean value)
Gets or sets a value which defines whether phone number is preferred.
public final PhoneNumberCategory getCategory()
Gets or sets an object category
public final void setCategory(PhoneNumberCategory value)
Gets or sets an object category
public final String getNumber()
Gets or sets a phone number
public final void setNumber(String value)
Gets or sets a phone number
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(PhoneNumber 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(PhoneNumber obj)
Determines whether the specified Object is equal to the current Object.
obj
- The Object to compare with the current Object.public boolean equals(Object obj)
Determines whether the specified Object is equal to the current Object.
equals
in interface com.aspose.ms.System.IEquatable<PhoneNumber>
equals
in class Object
obj
- The Object to compare with the current Object.public final boolean equals(PhoneNumber x, PhoneNumber 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(PhoneNumber a, PhoneNumber b)
Determines whether the specified objects are equal.
a
- First object to compareb
- Second object to comparepublic static boolean op_Inequality(PhoneNumber a, PhoneNumber b)
Determines whether the specified objects are not equal.
a
- First object to compareb
- Second object to comparepublic final int compareTo(PhoneNumber 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<PhoneNumber>
obj
- An object to compare with this instance, or null.