|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.i18n.phonenumbers.geocoding.AreaCodeMap
public class AreaCodeMap
A utility that maps phone number prefixes to a string describing the geographical area the prefix covers.
Constructor Summary | |
---|---|
AreaCodeMap()
Creates an empty AreaCodeMap . |
Method Summary | |
---|---|
void |
readAreaCodeMap(java.util.SortedMap<java.lang.Integer,java.lang.String> sortedAreaCodeMap)
Creates an AreaCodeMap initialized with sortedAreaCodeMap . |
void |
readExternal(java.io.ObjectInput objectInput)
Supports Java Serialization. |
java.lang.String |
toString()
Dumps the mappings contained in the area code map. |
void |
writeExternal(java.io.ObjectOutput objectOutput)
Supports Java Serialization. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AreaCodeMap()
AreaCodeMap
. The default constructor is necessary for implementing
Externalizable
. The empty map could later be populated by
readAreaCodeMap(java.util.SortedMap)
or readExternal(java.io.ObjectInput)
.
Method Detail |
---|
public void readAreaCodeMap(java.util.SortedMap<java.lang.Integer,java.lang.String> sortedAreaCodeMap)
AreaCodeMap
initialized with sortedAreaCodeMap
. Note that the
underlying implementation of this method is expensive thus should not be called by
time-critical applications.
sortedAreaCodeMap
- a map from phone number prefixes to descriptions of corresponding
geographical areas, sorted in ascending order of the phone number prefixes as integers.public void readExternal(java.io.ObjectInput objectInput) throws java.io.IOException
readExternal
in interface java.io.Externalizable
java.io.IOException
public void writeExternal(java.io.ObjectOutput objectOutput) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |