Package | Description |
---|---|
com.google.i18n.phonenumbers |
Modifier and Type | Method and Description |
---|---|
ShortNumberInfo.ShortNumberCost |
ShortNumberInfo.getExpectedCost(Phonenumber.PhoneNumber number)
Gets the expected cost category of a short number (however, nothing is implied about its
validity).
|
ShortNumberInfo.ShortNumberCost |
ShortNumberInfo.getExpectedCostForRegion(Phonenumber.PhoneNumber number,
String regionDialingFrom)
Gets the expected cost category of a short number when dialed from a region (however, nothing
is implied about its validity).
|
ShortNumberInfo.ShortNumberCost |
ShortNumberInfo.getExpectedCostForRegion(String shortNumber,
String regionDialingFrom)
Deprecated.
Anyone who was using it and passing in a string with whitespace (or other
formatting characters) would have been getting the wrong result. You should parse
the string to PhoneNumber and use the method
#getExpectedCostForRegion(PhoneNumber, String) . This method will be
removed in the next release. |
static ShortNumberInfo.ShortNumberCost |
ShortNumberInfo.ShortNumberCost.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShortNumberInfo.ShortNumberCost[] |
ShortNumberInfo.ShortNumberCost.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2014 Google. All Rights Reserved.