Package com.sinch.sdk.models
Class E164PhoneNumber
java.lang.Object
com.sinch.sdk.models.E164PhoneNumber
E164 Phone Number representation class helper
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static void
setStrict
(boolean strict) Configure if invalid string values will throw an Exception or notGet current value as a StringtoString()
static boolean
Validate value against E164 representation pattern,static E164PhoneNumber
Create a new instance
-
Method Details
-
valueOf
Create a new instance- Parameters:
value
- Phone number value- Returns:
- The newly created E164 instance
-
validate
Validate value against E164 representation pattern,- Parameters:
value
- String value representation to be checked- Returns:
- TRUE/FALSE
-
setStrict
public static void setStrict(boolean strict) Configure if invalid string values will throw an Exception or not- Parameters:
strict
- Set strict mode to true/false
-
stringValue
Get current value as a String- Returns:
- The value
-
toString
-
equals
-
hashCode
public int hashCode()
-