public class PrefixTimeZonesMap extends Object implements Externalizable
| Constructor and Description |
|---|
PrefixTimeZonesMap() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
lookupCountryLevelTimeZonesForNumber(Phonenumber.PhoneNumber number)
Returns the list of time zones
number's calling country code corresponds to. |
List<String> |
lookupTimeZonesForNumber(Phonenumber.PhoneNumber number)
As per
lookupTimeZonesForNumber(long), but receives the number as a PhoneNumber
instead of a long. |
void |
readExternal(ObjectInput objectInput) |
void |
readPrefixTimeZonesMap(SortedMap<Integer,String> sortedPrefixTimeZoneMap)
Creates a
PrefixTimeZoneMap initialized with sortedPrefixTimeZoneMap. |
String |
toString()
Dumps the mappings contained in the phone prefix map.
|
void |
writeExternal(ObjectOutput objectOutput)
Supports Java Serialization.
|
public void readPrefixTimeZonesMap(SortedMap<Integer,String> sortedPrefixTimeZoneMap)
PrefixTimeZoneMap initialized with sortedPrefixTimeZoneMap. Note
that the underlying implementation of this method is expensive thus should not be called by
time-critical applications.sortedPrefixTimeZoneMap - a map from phone number prefixes to their corresponding time
zones, sorted in ascending order of the phone number prefixes as integers.public void writeExternal(ObjectOutput objectOutput) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput objectInput) throws IOException
readExternal in interface ExternalizableIOExceptionpublic List<String> lookupTimeZonesForNumber(Phonenumber.PhoneNumber number)
lookupTimeZonesForNumber(long), but receives the number as a PhoneNumber
instead of a long.number - the phone number to look uppublic List<String> lookupCountryLevelTimeZonesForNumber(Phonenumber.PhoneNumber number)
number's calling country code corresponds to.number - the phone number to look upCopyright © 2014 Google. All Rights Reserved.