MultilingualString

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.dvb.spi.util
Class MultilingualString

    java.lang.Object
      org.dvb.spi.util.MultilingualString

    public final class MultilingualString

extends Object

A string that has an associated language code.

Since:
  MHP 1.1.3

Constructor Summary
`MultilingualString(String s, String languageCode)` Initialize a new MultilingualString.

Method Summary
`String` | `getLanguageCode()` Return the language code.
`String` | `getString()` Return the string.
`String` | `toString()` Return a string representation of this object

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### MultilingualString

    public MultilingualString(String s,
                              String languageCode)

  Initialize a new MultilingualString.

  Parameters:
    `s` - The string that is in the given language.
    `languageCode` - The language code encoded as per ISO 639.2.

Method Detail

### getString

    public String getString()

  Return the string.

  Returns:
    The string that is in the given language.

### getLanguageCode

    public String getLanguageCode()

  Return the language code.

  Returns:
    The language code encoded as per ISO 639.2.

### toString

    public String toString()

  Return a string representation of this object

  Overrides:
    `toString` in class `Object`
  Returns:
    a string

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD