public abstract class PhoneNumber extends Object implements Serializable
Scheme for a phone number, given by the address.
Modifier | Constructor and Description |
---|---|
protected |
PhoneNumber() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Indicates if the argument is of the same type and all values are equal.
|
String |
getAreaCode()
Areacode for this Phone number.
|
String |
getCountryCode()
CountryCode for this phone number
|
String |
getPhoneNumber()
The Phone number itself without any other code.
|
int |
hashCode() |
protected void |
initialize()
Hook for initializing the object in the subclass
|
static PhoneNumber |
newInstance(PhoneNumber otherObject)
Creates a new instance from other PhoneNumber instance.
|
static PhoneNumber |
newInstance(String CountryCode,
String areaCode,
String phoneNumber)
Creates a new instance of
PhoneNumber taking all properties. |
void |
setAreaCode(String areaCode) |
void |
setCountryCode(String CountryCode) |
void |
setPhoneNumber(String phoneNumber) |
public static PhoneNumber newInstance(PhoneNumber otherObject)
public static PhoneNumber newInstance(String CountryCode, String areaCode, String phoneNumber)
PhoneNumber
taking all properties.public boolean equals(Object object)
public String getAreaCode()
Areacode for this Phone number.
public String getCountryCode()
CountryCode for this phone number
public String getPhoneNumber()
The Phone number itself without any other code.
protected void initialize()
public void setAreaCode(String areaCode)
public void setCountryCode(String CountryCode)
public void setPhoneNumber(String phoneNumber)
Copyright © 2019 Communote team. All rights reserved.