Package com.google.i18n.phonenumbers
Class Phonemetadata.NumberFormat
java.lang.Object
com.google.i18n.phonenumbers.Phonemetadata.NumberFormat
- All Implemented Interfaces:
Externalizable
,Serializable
- Direct Known Subclasses:
Phonemetadata.NumberFormat.Builder
- Enclosing class:
- Phonemetadata
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Provides a dummy builder to 'emulate' the API of the code generated by the latest version of Protocol Buffers. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddLeadingDigitsPattern
(String value) getLeadingDigitsPattern
(int index) int
boolean
boolean
boolean
boolean
boolean
boolean
int
Deprecated.void
readExternal
(ObjectInput objectInput) setNationalPrefixOptionalWhenFormatting
(boolean value) setPattern
(String value) void
writeExternal
(ObjectOutput objectOutput)
-
Constructor Details
-
NumberFormat
public NumberFormat()
-
-
Method Details
-
newBuilder
-
hasPattern
public boolean hasPattern() -
getPattern
-
setPattern
-
hasFormat
public boolean hasFormat() -
getFormat
-
setFormat
-
leadingDigitPatterns
-
leadingDigitsPatternSize
Deprecated. -
getLeadingDigitsPatternCount
public int getLeadingDigitsPatternCount() -
getLeadingDigitsPattern
-
addLeadingDigitsPattern
-
hasNationalPrefixFormattingRule
public boolean hasNationalPrefixFormattingRule() -
getNationalPrefixFormattingRule
-
setNationalPrefixFormattingRule
-
clearNationalPrefixFormattingRule
-
hasNationalPrefixOptionalWhenFormatting
public boolean hasNationalPrefixOptionalWhenFormatting() -
getNationalPrefixOptionalWhenFormatting
public boolean getNationalPrefixOptionalWhenFormatting() -
setNationalPrefixOptionalWhenFormatting
-
hasDomesticCarrierCodeFormattingRule
public boolean hasDomesticCarrierCodeFormattingRule() -
getDomesticCarrierCodeFormattingRule
-
setDomesticCarrierCodeFormattingRule
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
-