@ 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 .