org.apache.commons.codec.language.bm

## Class Rule.Phoneme

- java.lang.Object
- - org.apache.commons.codec.language.bm.Rule.Phoneme

- All Implemented Interfaces:
    Rule.PhonemeExpr
  Enclosing class:
    Rule

      public static final class Rule.Phoneme
      extends Object
      implements Rule.PhonemeExpr

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static Comparator<Rule.Phoneme>` | `COMPARATOR`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Phoneme(CharSequence phonemeText, Languages.LanguageSet languages)`
    `Phoneme(Rule.Phoneme phonemeLeft, Rule.Phoneme phonemeRight)`
    `Phoneme(Rule.Phoneme phonemeLeft, Rule.Phoneme phonemeRight, Languages.LanguageSet languages)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `Rule.Phoneme` | `append(CharSequence str)`
    `Languages.LanguageSet` | `getLanguages()`
    `Iterable<Rule.Phoneme>` | `getPhonemes()`
    `CharSequence` | `getPhonemeText()`
    `Rule.Phoneme` | `join(Rule.Phoneme right)` Deprecated. since 1.9
    `Rule.Phoneme` | `mergeWithLanguage(Languages.LanguageSet lang)` Returns a new Phoneme with the same text but a union of its current language set and the given one.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### COMPARATOR

          public static final Comparator<Rule.Phoneme> COMPARATOR

  - ### Constructor Detail

    - #### Phoneme

          public Phoneme(CharSequence phonemeText,
                         Languages.LanguageSet languages)

    - #### Phoneme

          public Phoneme(Rule.Phoneme phonemeLeft,
                         Rule.Phoneme phonemeRight)

    - #### Phoneme

          public Phoneme(Rule.Phoneme phonemeLeft,
                         Rule.Phoneme phonemeRight,
                         Languages.LanguageSet languages)

  - ### Method Detail

    - #### append

          public Rule.Phoneme append(CharSequence str)

    - #### getLanguages

          public Languages.LanguageSet getLanguages()

    - #### getPhonemes

          public Iterable<Rule.Phoneme> getPhonemes()

      Specified by:
        `getPhonemes` in interface `Rule.PhonemeExpr`

    - #### getPhonemeText

          public CharSequence getPhonemeText()

    - #### join

          @Deprecated
          public Rule.Phoneme join(Rule.Phoneme right)

      Deprecated. since 1.9
      Deprecated since 1.9.
      Parameters:
        `right` - the Phoneme to join
      Returns:
        a new Phoneme

    - #### mergeWithLanguage

          public Rule.Phoneme mergeWithLanguage(Languages.LanguageSet lang)

      Returns a new Phoneme with the same text but a union of its current language set and the given one.
      Parameters:
        `lang` - the language set to merge
      Returns:
        a new Phoneme

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.