public class LocalizedNameGenerator extends java.lang.Object
Locale
and an optional suffix.Constructor and Description |
---|
LocalizedNameGenerator(java.lang.String baseName,
java.util.Locale locale,
java.lang.String suffix) |
Modifier and Type | Method and Description |
---|---|
java.util.Locale |
getCurrentLocale() |
boolean |
more()
Returns true if there are more name variants to be
returned, false otherwise.
|
java.lang.String |
next()
Returns the next localized variant.
|
public LocalizedNameGenerator(java.lang.String baseName, java.util.Locale locale, java.lang.String suffix)
public boolean more()
public java.lang.String next()
java.util.NoSuchElementException
- if all variants have been
returned.public java.util.Locale getCurrentLocale()