public class UfanetPhoneUtils
extends Object
-
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
GLOBAL_PHONE_PATTERN
public static final String GLOBAL_PHONE_PATTERN
- See Also:
-
-
DOMESTIC_PHONE_PATTERN
public static final String DOMESTIC_PHONE_PATTERN
- See Also:
-
-
LOCAL_PHONE_PATTERN
public static final String LOCAL_PHONE_PATTERN
- See Also:
-
-
GENERIC_PHONE_PATTERN
public static final String GENERIC_PHONE_PATTERN
- See Also:
-
-
Constructor Details
-
UfanetPhoneUtils
public UfanetPhoneUtils()
-
Method Details
-
isValid
public static boolean isValid(@NotNull
@NotNull String phone,
@NotNull
@NotNull String pattern)
-
normalize
public static String normalize(@NotNull
@NotNull String phoneText)