-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Comparable
public enum PhoneNumberUtil.ValidationResultPossible outcomes when testing if a PhoneNumber is possible.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IS_POSSIBLEThe number length matches that of valid numbers for this region.
IS_POSSIBLE_LOCAL_ONLYThe number length matches that of local numbers for this region only (i.e. numbers that maybe able to be dialled within an area, but do not have all the information to be dialled fromanywhere inside or outside the country).
INVALID_COUNTRY_CODEThe number has an invalid country calling code.
TOO_SHORTThe number is shorter than all valid numbers for this region.
INVALID_LENGTHThe number is longer than the shortest valid numbers for this region, shorter than thelongest valid numbers for this region, and does not itself have a number length that matchesvalid numbers for this region. This can also be returned in the case whereisPossibleNumberForTypeWithReason was called, and there are no numbers of this type at allfor this region.
TOO_LONGThe number is longer than all valid numbers for this region.
-
Method Summary
Modifier and Type Method Description static Array<PhoneNumberUtil.ValidationResult>values()static PhoneNumberUtil.ValidationResultvalueOf(String name)-
-
Method Detail
-
values
static Array<PhoneNumberUtil.ValidationResult> values()
-
valueOf
static PhoneNumberUtil.ValidationResult valueOf(String name)
-
-
-
-