public class PrefixTimeZonesMap
extends java.lang.Object
implements java.io.Externalizable
| Constructor and Description |
|---|
PrefixTimeZonesMap() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
lookupCountryLevelTimeZonesForNumber(Phonenumber.PhoneNumber number)
Returns the list of time zones
number's calling country code corresponds to. |
java.util.List<java.lang.String> |
lookupTimeZonesForNumber(Phonenumber.PhoneNumber number)
As per
lookupTimeZonesForNumber(long), but receives the number as a PhoneNumber
instead of a long. |
void |
readExternal(java.io.ObjectInput objectInput) |
void |
readPrefixTimeZonesMap(java.util.SortedMap<java.lang.Integer,java.lang.String> sortedPrefixTimeZoneMap)
Creates a
PrefixTimeZonesMap initialized with sortedPrefixTimeZoneMap. |
java.lang.String |
toString()
Dumps the mappings contained in the phone prefix map.
|
void |
writeExternal(java.io.ObjectOutput objectOutput)
Supports Java Serialization.
|
public void readPrefixTimeZonesMap(java.util.SortedMap<java.lang.Integer,java.lang.String> sortedPrefixTimeZoneMap)
PrefixTimeZonesMap 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(java.io.ObjectOutput objectOutput)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput objectInput)
throws java.io.IOException
readExternal in interface java.io.Externalizablejava.io.IOExceptionpublic java.util.List<java.lang.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 java.util.List<java.lang.String> lookupCountryLevelTimeZonesForNumber(Phonenumber.PhoneNumber number)
number's calling country code corresponds to.number - the phone number to look uppublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 Google. All Rights Reserved.