@Nonnull
  @ReturnsMutableCopy
  public static MultilingualText getCopyWithLocales (@Nonnull final IMultilingualText aMLT,
                                                     @Nonnull final Collection <Locale> aContentLocales)
  {
    final MultilingualText ret = new MultilingualText ();
    for (final Locale aConrentLocale : aContentLocales)
      if (aMLT.texts ().containsKey (aConrentLocale))
        ret.setText (aConrentLocale, aMLT.getText (aConrentLocale));
    return ret;
  }
@ Nonnull @ ReturnsMutableCopy public static MultilingualText getCopyWithLocales ( @ Nonnull final IMultilingualText aMLT , @ Nonnull final Collection < Locale > aContentLocales ) { final MultilingualText ret = new MultilingualText ( ) ; for ( final Locale aConrentLocale : aContentLocales ) if ( aMLT . texts ( ) . containsKey ( aConrentLocale ) ) ret . setText ( aConrentLocale , aMLT . getText ( aConrentLocale ) ) ; return ret ; }
Get a copy of this object with the specified locales. The default locale is
copied.

@param aMLT
The initial multilingual text. May not be <code>null</code>.
@param aContentLocales
The list of locales of which the strings are desired. May not be
<code>null</code>.
@return The object containing only the texts of the given locales. Never
<code>null</code>.