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

public static class Phonemetadata.NumberFormat extends Object implements Externalizable
See Also:
  • Constructor Details

    • NumberFormat

      public NumberFormat()
  • Method Details

    • newBuilder

      public static Phonemetadata.NumberFormat.Builder newBuilder()
    • hasPattern

      public boolean hasPattern()
    • getPattern

      public String getPattern()
    • setPattern

      public Phonemetadata.NumberFormat setPattern(String value)
    • hasFormat

      public boolean hasFormat()
    • getFormat

      public String getFormat()
    • setFormat

      public Phonemetadata.NumberFormat setFormat(String value)
    • leadingDigitPatterns

      public List<String> leadingDigitPatterns()
    • leadingDigitsPatternSize

      @Deprecated public int leadingDigitsPatternSize()
      Deprecated.
    • getLeadingDigitsPatternCount

      public int getLeadingDigitsPatternCount()
    • getLeadingDigitsPattern

      public String getLeadingDigitsPattern(int index)
    • addLeadingDigitsPattern

      public Phonemetadata.NumberFormat addLeadingDigitsPattern(String value)
    • hasNationalPrefixFormattingRule

      public boolean hasNationalPrefixFormattingRule()
    • getNationalPrefixFormattingRule

      public String getNationalPrefixFormattingRule()
    • setNationalPrefixFormattingRule

      public Phonemetadata.NumberFormat setNationalPrefixFormattingRule(String value)
    • clearNationalPrefixFormattingRule

      public Phonemetadata.NumberFormat clearNationalPrefixFormattingRule()
    • hasNationalPrefixOptionalWhenFormatting

      public boolean hasNationalPrefixOptionalWhenFormatting()
    • getNationalPrefixOptionalWhenFormatting

      public boolean getNationalPrefixOptionalWhenFormatting()
    • setNationalPrefixOptionalWhenFormatting

      public Phonemetadata.NumberFormat setNationalPrefixOptionalWhenFormatting(boolean value)
    • hasDomesticCarrierCodeFormattingRule

      public boolean hasDomesticCarrierCodeFormattingRule()
    • getDomesticCarrierCodeFormattingRule

      public String getDomesticCarrierCodeFormattingRule()
    • setDomesticCarrierCodeFormattingRule

      public Phonemetadata.NumberFormat setDomesticCarrierCodeFormattingRule(String value)
    • writeExternal

      public void writeExternal(ObjectOutput objectOutput) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Throws:
      IOException
    • readExternal

      public void readExternal(ObjectInput objectInput) throws IOException
      Specified by:
      readExternal in interface Externalizable
      Throws:
      IOException