Package com.spun.util
Class PhoneNumber
java.lang.Object
com.spun.util.PhoneNumber
public class PhoneNumber extends Object
Phone number validation, and formatter.
this class is immutable.
-
Field Summary
Fields Modifier and Type Field Description static String[]COUNTRY_CODESstatic intUSA -
Constructor Summary
Constructors Constructor Description PhoneNumber(String originalValue) -
Method Summary
Modifier and Type Method Description CountrygetCountry()StringgetInvalidReason()StringgetOriginalText()StringgetPartiallyFormattedAsInternational()StringgetValue()StringgetValueAsInternational()StringgetValueAsNorthAmerican()StringgetValueAsUps()booleanisNorthAmericanNumber()booleanisValid()StringtoString()
-
Field Details
-
USA
public static final int USA- See Also:
- Constant Field Values
-
COUNTRY_CODES
-
-
Constructor Details
-
PhoneNumber
-
-
Method Details